is there a method I can call to get the index of the modifier I have currently selected?
something along the lines of...
i = modPanel.getIndexOf $.modifiers[]
Forum topic · General Scripting
By roosterMAP · 2012-04-06
is there a method I can call to get the index of the modifier I have currently selected?
something along the lines of...
i = modPanel.getIndexOf $.modifiers[]
modPanel.getCurrentObject()
jos · 2012-04-07
modPanel.getCurrentObject() Returns the modifier or base object currently selected in the Modify panel stack.
modPanel.getModifierIndex <node> <modifier> Returns the index of the given modifier in the modifier stack for the given node.
So this is what you need:
modPanel.getModifierIndex $ (modPanel.getCurrentObject())