Getting list of all object's attributes

Martin.Jirsak's icon

Hi,

Is there any way, I can get a list of all attributes of an object?

Let's say I have a [number] and I want to get the list of all attributes and then the values of all attributes values (this is already easy). Then I want to get the list of all attributes of other object (for example the [bang] or any other object.

How can I do this with the JavaScript, please?

Thank you

tyler mazaika's icon

https://docs.cycling74.com/max8/vignettes/jsmaxobj getattrnames() and getattr(). If its easy to get it all for a [number] why is it not equally easy for a [bang] ?

Martin.Jirsak's icon

This works, thank you!