Notifications
Clear all

[Closed] select obj from variabel

I think this is easy but I cant get it right. How can I select a object with help from string

test = “$Box01”
select test

3 Replies
2 Replies
(@nilremk)
Joined: 1 year ago

Posts: 0

The only way is to build a string and then to execute it like a command

test = “select $Box01”
execute test

Something like that

(@bobo)
Joined: 1 year ago

Posts: 0

Read the fine manual!
This has been put into the MAXScript Frequently Asked Questions in the MAXScript Reference for a good reason

test = execute “$Box01”
select test

or

test = getNodeByName “Box01”
select test

Thanx, never saw that FAQ, alot of good info there…