init message thru autopattr / pattrstorage
A quick question/request :
With autopattr and pattrstorage object, it is possible to send values to named objects. UI pattr objects accept an init message to reset their value. But you can’t send an init message to these objects with autopattr/pattrstorage.
Try this :
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 776.3oc0W10aaBCEF9ZxuBFZR6lrHv78tZa+F1cSSUFvMwcD6HrIscU6+97G 3.z.oDTSZWkJIb7wlWdNu9.4oEVNYzGPLG6uX+SaKqmVXYoBICX0btkyV3C4 kPlJMmb51sHB2YodLN5AtJ9O1fY12Sq9My9ClAI0ao07RDWMU2ln6f77MXx5 apP4b8kNIXk6R6Xe4QuPW4G.vJW6e0LEbg5ZPyt6yd9lU+VJgSfaQpg9VEFV Z+cZYQ2gY3+nF1StjMgqVmoTygHY0YYk5zZ0MlXjsmL1eWrPdX4aIjhCkbIX RPJ30FR6pPLwcDjiojQzjaygCB5B.1sHFCtFcDXwDLeXf5MNP0LT657AqBEX MZDdFNQdpuv7G2gzWBGmCK2HndDv1UaGA1dXDLCLdaIUrFCCLv3.CzoZqEnW xH.KZh.aGrRLHGUcCh.abKtiASgrghxrsSFjrdtjEbJK6kcmeAEwHehO6N.f zXkqHcJs..WoV.fTkbzsvmPO.IRxokzJ8z85NskxSuREiYWDRRTFnIUD79O3 gUup8TAQ9sVzS2TM8h0Sse+QC4V+BttqXeT+NVnS2HM9suO5EyfUh2iVUHuS 9n24azzLzCnvWjpfNlSK7J4zlAaHn6EJzHf8vpCxqFDj35B.f3i.GrlSEHgW Y+U4WE8kkGrcMIVhInbZMg20G1mrAuLYCTcz8b0c3RGFs9yFsK67+4YAaB1b a2.2F5Z05pzWnnnUgoh+Rzav00mysJ0tlCTnNZvy78o7.QptAJbGDOLmAmZi t2ofrdy9HOTsIHCtGUbizQgyp4n1uwdNc2CKqQzaMgMw6pqZwyMX7G60CpWB xGrzVehMRqWNlahSL+iAPurXanU7QKR8RUzEe8.YpSTaX56aTRVsM6Y+1YUQ VFuuYhQqqxMEEyOnvtsPWHrxXh5Mq5jDnWNavEEHR295EXlD.JSh6ft5IKmn 2UxIcBpI7pol32UpYJFG+YpFssFta2dTEqYIUBQzM7N8qNEsTcJlnOUshhNw 6wl7SVHWs+t3eHG9JkH -----------end_max5_patcher-----------
Is it possible to fix this ?
you need to understand that the purpose of (auto)pattr object is remembering and recalling contents/values of client UI objects.
That’s why it does not work, because the "init" message cannot be dial object’s value/content. The dial objects only accepts it as a control message, but it is not a suitable value/content of it. That’s important difference. The "init" message could be suitable value/content for some textbox for example and there autopattr would let it thru (and mainly, remember it as the textbox’s content/value)
So, the (auto)pattr is not the correct tool for sending just any (ie control) messages to objects. An even if it would be suitable values/contents it is not the right tool for just sending it from one part in the patch to another. Take a look at [send] [receive] objects instead – they may be what you need there (maybe / you have no context in the example and i am not sure what are you trying to make)
(or if you insist on using the autopattr, then you could still set the init values on loadbang and save them all to 0th preset and then instead of sending "init" message to the dial object, you could just tell the autopattr to recall 0th preset for that one dial client)…
You can send an arbitrary message to a pattr object (or any other object with a scripting name) using pattrforward.
Forums > MaxMSP