ScriptSpot

Forum topic · General Scripting

controller track error check

By JokerMartini · 2010-11-22

Description

I'm missing something here and it is not working.


(
obj = getCurrentSelection()
track = prs ()
if obj.Transform.controller == track then
(
print "this is true"
)
else
(
print "this is false"
)
)

Comments (1)

answer

JokerMartini · 2010-11-22


(
for current in selection do
(
if (classOf current.transform.controller) == prs then
(
print "this is true"
)--end if
else
(
print "this is false"
)--end else
)--end for
)