XM Magdalena 3D print, GGeorgy (3D)
LC #42 Pipers Alley

View Full Version : object referancing

04-23-2008, 06:44 PM
here is another one i'm stuggling to get. referanceing a node is simple in a scene by using its name either by string or by the obejct in an array. the problem i have hit is i have a script on a charater that allignes to objects together "pritty simple except if an animator clones the rigg or imports and renames the objects then script wont work because.

obj.transform = obj2.tranform not the same any longer infact obvious thing is that it will align the other rigg elements if you have the 2 riggs in the scene.

is there a way of referancing an object by Id so that if a name change ocurs things wont break and can you add somthing that will change the object array of the aligning objects to the new cloned object arrays? what is a good method here.



04-23-2008, 11:08 PM
-- get a node's handle (an integer value)
_handle = $.inode.handle

-- get the node for a given handle
_node = maxops.getNodeByHandle _handle

See also:

04-23-2008, 11:56 PM
thanks man,
i never came across that one.



CGTalk Moderation
04-23-2008, 11:56 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.