View Full Version : Picking one out of many duplicate objects?

07 July 2003, 10:07 PM
We apply mocap to characters in our scenes. Our bone structures must be all be named the same, ie character 1 has hips->lowertorso->chest, and character 2 has hips->lowertorso->chest.

if there were only one node named "hips" i would ref it by looking for $hips... bit what if there are two nodes named "hips", how do i reference a specific one consistently? do i need to look in some kind of scene array and find an index?

any help?


07 July 2003, 05:02 AM
.handle : DWORD : Read

Gets the nodeís handle. It provides a unique identifier independent from the objectís name.

07 July 2003, 07:28 AM
thx for that... definitely works.

is there any way to select by inode.handle without looking at every object and comparing?

07 July 2003, 09:11 AM
maxOps.getNodeByHandle <number>

Returns the node associated with the id passed in.

Note: It is safer to say $box01.inode.handle than $box01.handle. This is to prevent cases where the baseobject has property called handle, like a teapot, and you get that objectís handle instead of the node handle.

CGTalk Moderation
01 January 2006, 04:00 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.