[Closed] Help creating a variable that has properties/attributes
Hi all,
Sorry I might be out of my depth here but I’m trying to learn, so I most probabbly have all the lingo mixed up.
I am trying to create a variable, that has different ‘properties’ (?) so for example
the variable might be called ‘Direction’ and then within that, there are properties, up,down,left,right.
so I can assign say 1 to Direction.up.
Or the other alternative is can you simply add custom attributes to say a box object. so the there would be
box.up ?
A kick in the right direction would be much appreciated!
If you mean a variable in maxscript that has various properties, see the manual for structs.
If you want to add a property to an object, see the manual for custom attributes. (Adding a custom attribute with a parameter called “up” to the baseobject of a node would allow accessing it as property of the node, like: $Box001.up)