"varname" is not a valid attribute argument — WTF??/Bug report
I’m trying to instantiate objects, setting the varname attribute in the object box as follows:
----------begin_max5_patcher---------- 247.3ocoPFrSCCCCF9bxSgkOWpZJcZHNAOGnooztvHSsISsdqcLs2cZbBCgD bfwkDke+a6+7cVJvZ+jY.gGgW.g3rTHXoffH8Vfc5olV8.aCclQe8NLKVhLS DKuyR4cZp2NAOcT26zcFfLCT4mN8GnVCQm1ahaKzw5XGXFfHrJY7UuiFruy1 Tk4EI48Zp4Mqa65dSCEGwhGlqBKCd.U0xvUYQdw0I4NzYcyKkCtJIZ2v4c9O b20rEVYHwbkm6s5V7qQDCNOixf3EoLbjcS7JgFtR.OpeDjiV2F+32Ao5WAYs 1s8lQHSs6qXDtn5OiP0+AgvJ4E4GF2AmqA -----------end_max5_patcher-----------
but this just gives errors in the Max window.
Is this a bug or not?
Summary: Can’t set varname attribute as part of the argument/attribute list in an object box.
Sample patch: see above
Expected behavior: objects with a "@varname" setting in the object box are instantiated with the varname attribute set accordingly
Actual behavior: Error messages in Max window; attribute not set.
System: Max/MSP 5.1.8 (45300); iMac running Mac OS 10.6.8
I’m not a Jitter guy, so forgive possible wrongheadedness, but I don’t see a "varname" attribute for these objects. I see a "name" attribute, though.
Scripting Name. Every object in Max has one.
The actual name for this attribute (if you click the ampersand at the left of the toolbar in the bottom of an object’s Inspector window to reveal the internal attribute names) is ‘varname’. This is also the field of the Inspector that Max jumps to when you select an object and hit Cmd-apostrophe (‘) for the Object->Name… menu.
The Jitter matrix name is another animal. That, indeed, is simply called ‘name’. Not the guy I’m lookin’ for, though.
Sorry Peter, this is somewhat arcane, but varname and other "box" attributes aren’t possible to set via object box text, or by direct message. In part this is to avoid potential naming conflicts and ambiguities that might arise from a box attribute and the underlying object’s attribute.
So the simple answer is that this isn’t possible due to the separation of a box and its contained object, and it won’t be changed soon.
Ahh. Well, using the "drag name out of inspector" trick, it looks like the varname has to be sent using "sendbox," which I don’t know if it’s possible to do with attributes.
----------begin_max5_patcher---------- 423.3ocuUFrbBBCDF9L7TjgyVGR.r0dqm5k9FzwwIRR03.INjPkVGe2aHAzh JJZsbIYX2M69uePV1353MSTPkdfmAuCbb1353XLUZvo5YGuTbQbBVZByiSWK lszaf0khVnLlSDXxLLedsiUXU7BFe9zLZrxleXDbn+.81SkaihJWQZSfIUmg mmx3ITkoPvJiLhI+5Z9PTcx+PvUbbJ034s7XFACdMCyITu8oRjqNLWVSpuVQ sJxyn3c0uLsR12FmPzP+RqaccKWFzQ5jRkR7b5Q3QR4D8IAehyJENPQkJ3YX kkQPjARvvGMaiaiUniYU3cmUsyo51HipaSEVwD71ZE+pEvj+Y3htLbGO5Vga POB2afSMuhVQEimFjYG+VxTCSwpLVwEgFx9ZLxd40+Jt7hNIydIigSNMqPsw JsbmVK2dkbvSRt0LNQr9bjy9Alc52nfqlbv6F4rCn6HyLw3kv3G9+ASKVZuI Hkh7r35JUMtFruKIZ.x3lgC+JlfFwrfQHTi65YJoLxJAiqpjPKiMtmJJrWUT XGTDrWUTPGTD5OnH8Cac+AfpT4+k -----------end_max5_patcher-----------
=== edit ===
What Joshua said.
"but varname and other "box" attributes aren’t possible to set via object box text, or by direct message."
Was wondering about that, it seems like as the number of attributes grows, it makes one wonder why all attributes aren’t settable in the same way that some are, using the @notation. That’s fine, but it has been a bit confusing at times…which can be, and which not?
Great that the Jitter objects seem to be all (mostly?) on the same page, whereby one can set any listed attribute (from the popup, not the Inspector) using @.
Maybe that’s the confusion, the Inspector leads one to believe that one can set any of those, but in reality only a few are available using @.
Forums > MaxMSP