Notifications
Clear all

[Closed] Picking one out of many duplicate objects?

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?

ben

3 Replies

.handle : DWORD : Read

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

thx for that… definitely works.

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

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.