How to force getvalueof ( ) ?

Dec 5, 2010 at 5:04pm

How to force getvalueof ( ) ?

Hello maxers,

i successfully implemented a myobject_getvalueof function but it seems that this function is actually called only when you save the patcher …

How to update the pattrstorage slot when my object’s data change … there is something i don’t understand ; How pattrstorage know my data have been changed ? Do i have to attach and notify ? But which object ?

I don’t find a file to get an example, and i’m a bit lost …

Dec 6, 2010 at 1:50pm

pattr and pattrstorage should be the ones attaching to your object using the standard mechanisms. You need to notify your value has changed with object_notify(x, _sym_modified, NULL) when you want to notify any clients.

This is demonstrated in the jslider sdk example for instance.

Dec 6, 2010 at 4:47pm

Hello Joshua Kit Clayton,

i found the solution in old PDF (max 4.5 ?) “pattr SDK” ;
sorry, i didn’t see the object_notify ( ) function in jslider.c ;
It works now ;-)


You must be logged in to reply to this topic.