ScriptSpot

Forum topic · General Scripting

Selected Base object modify panel

By JokerMartini · 2011-05-13

Description

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

works fine

Anubis · 2011-05-13

no errors here (Max 2009)