I have a maxscript bound to a hotkey that lets me toggle the visibility of my currently selected modifier in the stack...but it won't update the eyeball icon unless I interact with the command panel in some way.
I did find this little snippet: colorMan.reinitIcons()
that does the job, except it also automatically reselects to the top of the stack, which makes the toggle kind of useless.
Is there another way to do this?
I may as well post said script here since I'm pretty sure I found it on cgsociety
(
CurrentMod = modpanel.getCurrentObject()
theModifier_ID = modPanel.getModifierIndex $ CurrentMod
($.modifiers[theModifier_ID].enabled = NOT $.modifiers[theModifier_ID].enabled)
)
Replies