PDA

View Full Version : Maxscript: problem working with an object


XAQT
05-01-2003, 10:19 AM
Hi,

When an object is selected, with the name "object_one", I would like to align it to "object_one_ORIGINAL". It's an universal script and all objects in my scene have a dummy named the same but with the suffix "_ORIGINAL".

$ gives me the current object, how to get to "original" dummy? I've been trying all sorts of things, but I can't pull it off. Hope someone can help me with this. Thanks.

magicm
05-01-2003, 10:52 AM
Originally posted by XAQT
$ gives me the current object, how to get to "original" dummy? I've been trying all sorts of things, but I can't pull it off. Hope someone can help me with this. Thanks.

try this:


-- get the object
obj = $object_one
-- get the dummy based on the name of 'obj'
org = getnodebyname (obj.name + "_ORIGINAL")

XAQT
05-01-2003, 11:06 AM
Thanks alot, that's exactly what I needed!

CGTalk Moderation
01-15-2006, 12:00 AM
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.