[Closed] MaxScript flag modifiers "ligth icon"
Hi everyone.
I haven’t found a command in Maxscript to switch the ‘light icon’ of a modifier to cancel its action.
Is there a way?
Thanks a lot for your help.
Yes. You are right as allways.
My question was not properly posed at all.
I mean: is there a way to catch user action in this icon?
No. It doesn’t take this action into acount.
This action occurs for example when you switch between modifiers in the stack or when unselecting objects, or exiting modify panel.
In all cases, callbacks.notificationParam() gives ‘undefined’.
and what if it’s undefined? try all the modifier panel callbacks… you need only the fact that something was changed.
Yes, I know it’s not important to get ‘undefined’ or other. It was just for information.
Any of the four modify panel callbacks take this action into account. It’s a shame.
stop, stop, stop…
if the system fires any callback it’s all that you need. just go after and check what was changed (or just check modifiers states).
what do you want to catch?
Hi DenisT.
Sorry for the delay. I was taking my daughter to a concert and traffic in Madrid is worst than MaxScript!
I can’t find any system fire when I click this icon. Here’s the code I’ve tryed with the four Modify Panel callbacks:
callbacks.removeScripts #modPanelObjPostChange id:#ID_0X39FA5AB10X1B39F333
callbacks.removeScripts #ModPanelSubObjectLevelChanged id:#ID_0X39FA5AB10X1B39F333
callbacks.removeScripts #modPanelObjPreChange id:#ID_0X39FA5AB10X1B39F333
callbacks.removeScripts #modPanelSelChanged id:#ID_0X39FA5AB10X1B39F333
str1 = "params=callbacks.notificationParam()
"
str1 = "format \"\
Post Change\
\"; format \"params = %\
\" params
"
str2 = "params=callbacks.notificationParam()
"
str2 = "format \"\
SubObject Level\
\"; format \"params = %\
\" params
"
str3 = "params=callbacks.notificationParam()
"
str3 = "format \"\
Pre Change\
\"; format \"params = %\
\" params
"
str4 = "params=callbacks.notificationParam()
"
str4 = "format \"\
Panel Sel Change\
\"; format \"params = %\
\" params
"
callbacks.addScript #modPanelObjPostChange str1 id:#ID_0X39FA5AB10X1B39F333
callbacks.addScript #ModPanelSubObjectLevelChanged str2 id:#ID_0X39FA5AB10X1B39F333
callbacks.addScript #modPanelObjPreChange str3 id:#ID_0X39FA5AB10X1B39F333
callbacks.addScript #modPanelSelChanged str4 id:#ID_0X39FA5AB10X1B39F333
Anything happens when I click the light icon. Absolutely nothing.
What I want is to disable the effect of my Plugin Modifier Script when the user clicks this icon.
what? it’s the built-in functionality, isn’t it? what is the type of your modifier?