modifier index question

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[]

Comments

Comment viewing options

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

modPanel.getCurrentObject()

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

Comment viewing options

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