Forums > MaxMSP

Getting Object Attributes

August 21, 2011 | 5:00 am


I have been trying to get the attributes of an object WITHOUT the help of the inspector. Is there any way to do this? I know in max 4 they use to have the object "thisobject" but not in max 5. I’m using max 5, please let me know how to obtain the attributes of an object if possible. Thanks!

August 21, 2011 | 6:44 am

For Jitter objects, send the message ‘getattributes’ in the left inlet, and a list of the attributes will come out the right outlet.
For all Max objects, click (and hold) on the left inlet, and the attributes show up in a popup menu; release the mouse over the attribute you want, and it will be placed in a message box and connected to the left inlet, ready for use.

August 21, 2011 | 12:06 pm

I wrote a javascript that parses the text of the reference page for a given object and spits out the accepted messages and attributes so you can use them in your patch, I’m not on my regular computer right now but if it could be useful let me know and I’ll share it here.

September 8, 2011 | 5:27 pm

Hey thanks guys, I actually figured it out with some javascript I found on another forum here. Thanks!

December 19, 2013 | 7:48 am

Thanks for sharing the code cycling84!

December 19, 2013 | 9:41 am

#deleted due to error#

January 10, 2014 | 9:12 am

The getattr obj lets you query object attributes. Its also available in javascript.

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

Forums > MaxMSP