In scene present $box01, in maxscript I have string a="box01" .
Can I select object $box01 in scene use string like
"select a as object" ????
Forum topic · General Scripting
Select object by name
By Any · 2013-01-26
Description
Comments (3)
Big Thanks
gyhser · 2013-10-20
This is just what I needed for a script I'm working on that handles UDK Collision, thank you! And yes
b1 = getNodeByName "Box001"
select b1
is certainly the fastest way to do it.
Cheers!
Anubis · 2013-01-26
If your variable "a" refer to the object itself:
a = $Box01
select aBut if "a" is just the name as string then:
a = "Box01"
select (getNodeByName a)And there no "as object" conversion ;)
barigazy · 2013-01-26
Yes. Just use getNodeByName function
b1 = getNodeByName "Box001"