Forums > MaxMSP

thispatcher noob problem (script delete)

Sep 05 2010 | 10:49 pm

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. --

Sep 05 2010 | 11:10 pm

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!*

Sep 06 2010 | 12:54 pm

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?

Sep 06 2010 | 9:01 pm

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!*

Sep 07 2010 | 12:24 pm

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.

Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP