PDA

View Full Version : Select Object By It's Name


Focus-GFX
12-14-2006, 12:41 PM
hi all, could anyone tell me how to select a max object by a string name ?
for examble
x = "Node01"
how can i select the x variable in the scene ?

rodassaf
12-14-2006, 01:08 PM
If you wanna select a node called box01, just write file:///C:/Documents%20and%20Settings/pascali/Desktop/maps/flower-picture-2.jpg: select $box01
you may want to assign a variable with the box01: a = $box01, but if the box01 is already selected in the scene, just write: a = $

If you want to select the variable a in the max viewport write: select a


Regards,

Rodrigo

ypuech
12-14-2006, 01:27 PM
Hi,

Use :

node = getNodeByName "Node01"

Focus-GFX
12-14-2006, 01:29 PM
thanks man you really helped me :)

CGTalk Moderation
12-14-2006, 01:29 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.