thispatcher noob problem (script delete)

Sep 5, 2010 at 10:49pm

thispatcher noob problem (script delete)

Im trying to figure out thispatcher object, and use it to delete some objects..

What do I do wrong?

– Pasted Max Patch, click to expand. –
#52179
Sep 5, 2010 at 11:10pm

you spelled ‘delete’ wrong in several places(also, there is no object with scripting name ‘mess’, which means the script at that point will fail and no other scripting will work after that(i.e. the ‘this’ named thispatcher will not get deleted because the deletion before that for ‘mess’ will not work)).

_______________________________________
*Never fear, Noob4Life was never here!*

#187498
Sep 6, 2010 at 12:54pm

Ahh, writing detete 4 times was not clever, I really need readin glasses.

1 question though, can I use a thispatcher to delete itself, after deleting several other patches?

#187499
Sep 6, 2010 at 9:01pm

yes, you can tell thispatcher to delete itself(it will work).

(just make sure that every part of the script before its self-deletion works, if the script message fails at any point(for example, you have it refer to an object/scriptingname that doesn’t exist) it will stop registering any scripting beyond that found in the same message.)

_______________________________________
*Never fear, Noob4Life was never here!*

#187500
Sep 7, 2010 at 12:24pm

Cool, I have not got it to work though (yet)

Can I save messages with a scripting name as a prototype, and then use a thispatcher to clean up a patch with loads of comments (in a fast an convenient way)? Somehow a message-thispatcher clipping or prototypes that automatically speaks with (delete or other operations) many different objects in a patch.

#187501

You must be logged in to reply to this topic.