How do I clear the contents of a value object?

Feb 26, 2013 at 5:56am

How do I clear the contents of a value object?

Hi, I’ve tried sending it an empty message but still retains it’s previous value and it doesn’t take a clear message.

thx Lee

#66700
Feb 26, 2013 at 6:59am

this is the only way I know how to do it, via patcher scripting:
(stupid, I know)

– Pasted Max Patch, click to expand. –
#240069
Feb 26, 2013 at 7:10am

Hi,

This seems to work (at least in max 5.1.9), but if i’m not sure you can rely that this trick to work properly in future versions.

– Pasted Max Patch, click to expand. –
#240070
Feb 26, 2013 at 8:20am

i use placeholders such as “777″, “zzzzzzzzzz” or the smallest possible negative number to initialize such objects and then filter that placeholder out using [route].
-110

#240071
Feb 26, 2013 at 9:56am

Here my workaround.
Best

– Pasted Max Patch, click to expand. –
#240072
Feb 26, 2013 at 10:22am

@nicolas your (elegant) solution works in v 6.0.x too

btw my idea probably wouldn’t work once the patcher is saved

#240073
Feb 26, 2013 at 1:09pm

thx for the replies guys, will check em out later :)

#240074

You must be logged in to reply to this topic.