Picking one out of many duplicate objects?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Display Modes
  07 July 2003
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?

  07 July 2003
.handle : DWORD : Read

Gets the nodeís handle. It provides a unique identifier independent from the objectís name.
Just enough to bring chaos to order
  07 July 2003
thx for that... definitely works.

is there any way to select by inode.handle without looking at every object and comparing?
  07 July 2003
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.
Just enough to bring chaos to order
  01 January 2006
Thread automatically closed

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.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright ©2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 07:46 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.