<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?
Forum topic · General Scripting
By yunusbbayram · 2011-09-07
<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?
there many ways
Anubis · 2011-09-07
for example:
for obj in objects where obj.name == "askona" do select objwill 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 objalso GetNodeByName is a bit more faster:
obj = GetNodeByName "askona"
if isValidNode obj do select objcheers!
yunusbbayram · 2011-09-08
Thanks anubis