PDA

View Full Version : do max objects have creation ID?


Dave_Hingley
11-11-2009, 12:15 PM
are objects created in max assigned some kind of internal ID upon creation?

If i make a sphere, duplicate it and rename so it has the same name, max does not get the spheres confused, I am assuming that internally max has assigned some kind of ID to each sphere to keep track of it.

If there is an ID is there a way to expose this via maxscript?

marktsang
11-11-2009, 12:28 PM
hi,
you can try the handle property of objects

$.handle

but be aware that it can change for merged or xrefed objects (because merged or xrefed objects handles may conflict with handles in existing scene)

Gravey
11-11-2009, 01:33 PM
just to add to that - its actually better to use <object>.INode.handle rather than <object>.handle mainly because of the teapot object which has a handle property of type boolean which of course will cause an error if you try and treat it like an integer.

CGTalk Moderation
11-11-2009, 01:33 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.