How do we choose the name of the object that ascona?

 

 <code>

 for i in 1 to objects.count do

if objects[i].name=="askona" do

select $objects[objects[i].name:"askona"] 

 </ code > ?  How do we choose the name of the object that ascona?

 

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

there many ways

for example:
for obj in objects where obj.name == "askona" do select obj
will end with Only one, so if there objects with duplicated names, you can use SelectMore instead of Select:
for obj in objects where obj.name == "askona" do selectMore obj
also GetNodeByName is a bit more faster:

obj = GetNodeByName "askona"
if isValidNode obj do select obj

cheers!

my recent MAXScripts RSS (archive here)

yunusbbayram's picture

Thanks anubis

Thanks anubis

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.