[Closed] Remembering settings in modifiers
Hi, I have a little problem that I hope somebody can help me with.
I’m making a modifier plugin(simpleMod) that will deform objects in certain ways. I have some radiobuttons that control wich axis is affected. The thing is that when I apply more than one of these modifiers in the stack and change the settings on one of them, then the settings of all those modifiers in the stack are changed. Any ideas on how to solve this?
I already have the settings stored in global values, since otherwise it seems that they will jump to default whenever I deselect and go into the modifier again. I’m pretty new with modifiers so any help is appreciated, thanks.
CML
GLOBAL? Strange idea…
Are you using Parameter blocks? If yes, all values should be stored in the ParamBlock of the modifier instance. Normally, Max remembers the latest settings of its plugins. If you want a parameter to be always reset, you could implement some of the plugin event handlers like on PostCreate do() (see “Event Handlers” in topic “Scripted Plug-in Clauses”)
and make your adjustments there…
Hope this helps.
Hey Bobo thanks a lot! I had missed to include the radiobuttons among the parameters, only had them in the rollout. I also realised that those global values were messing things up and wasn’t really needed. It’s working great now.
thanks,
CML