Selected Base object modify panel

How do I make sure the user is actively in the base of the objects modify panel. I commented the buggy part.

if selection.count == 1 and \
(
   classof selection[1] == SplineShape or \
   classof selection[1] == Line
) \
   and selection[1].modifiers.count == 0 then -- This is buggy!
(
 print "i can do this"
)

Comments

Comment viewing options

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

works fine

no errors here (Max 2009)

my recent MAXScripts RSS (archive here)

Comment viewing options

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