controller track error check

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

Comment viewing options

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

answer

(
 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
) 

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Comment viewing options

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