Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get node by name

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
yueshiwu
1861 Views, 5 Replies

How to get node by name

Hi, all.

   How to get node by name if i don't want to use scripts. Thanks! 

 

5 REPLIES 5
Message 2 of 6
blakestone
in reply to: yueshiwu

Get node by name without using script...

 

node.gif

 

Get node by name using script A.)...

 

(

   local my_node = getNodeByName "my_object"

   if my_node != undefined then
   (
      do_something()
   )

) 

or get node by name using script B.)...

 

(

   local my_node = $my_node

   if my_node != undefined then
   (
      do_something()
   )  

)

 

hopefully one of these answers your question... !?

--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------
Message 3 of 6
yueshiwu
in reply to: blakestone

Thank you! This does help.

And is there any sdk function can do this job?  such as Interface::getRootNode().

Message 4 of 6
blakestone
in reply to: yueshiwu

I am sure there is however this is a little beyond my knowledge at this stage.

--------------------------------------------------------------------------------------
Technical 3D Graphic Artist
Autodesk 3dsMax 2015 - Service Pack 4
--------------------------------------------------------------------------------------
Message 5 of 6
yueshiwu
in reply to: blakestone

Smiley Very HappyThank you all the same!

 

Message 6 of 6
yueshiwu
in reply to: yueshiwu

INode* pNode = GetCOREInterface()->GetINodeByName(....);

 

this function can solve problem.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report