[Closed] Changing modifier
Is there a way to change how a modifier works using scripted plug in?
Using the example from the help file I can add a modifier call supaMod that takes the bend modifier and append the new stuff, but is there a way to have this stuff loaded INSIDE the bend modifier?
plugin modifier myMod
name:"Supa Mod"
classID:#(685325,452281)
extends:Bend replaceUI:false version:1
(
parameters main rollout:params
(
bendamt type:#float animatable:true ui:bendamt default:0.0
on bendamt set val do delegate.angle = val
)
rollout params "SupaMod Parameters"
(
spinner bendamt "Bendiness: "
)
)
I’m pretty sure I can do that but I missed the info somewhere
I believe you use the scripted plugin in feature to make your own extended and custom modifiers. Not sure you could use it to change the default modifiers. Any specific reason you want to change the existing bend instead of making an extended version?
Actually i want to add more stuff inside the skin modifier, that bend part come from the help files
Make an extended skin modifier. Just wondering what you are looking to add?
And how do I do that? What should I look for?
I wasnt happy with the default .env file saved with the skin modifier so I made a custom one using xml formatting. Now what id like is to able to save it and load it straight from the skin modifier
plugin modifier skinXML
name:"Skin XML"
classID:#(561325,846592)
extends:Skin replaceUI:false version:1
(
parameters main rollout:importExportRO
(
)
rollout importExportRO "Import / Export XML"
(
button ImportBtn "Import XML"
button ExportBtn "Export XML"
on ExportBtn pressed do
(
SaveExport = getSaveFileName \
caption:"Export XML Settings" \
types:"XML(*.xml)|*.xml|"
If SaveExport != undefined then
(
--MAXSCRIPT USED TO CREATE AN EXTERNAL XML FILE
)
)
on ImportBtn Pressed do
(
LoadExport = GetOpenFileName \
caption:"Import XML Settings" \
types:"XML(*.xml)|*.xml|"
If LoadExport != undefined then
(
--MAXSCRIPT USED TO IMPORT AN XML FILE
)
)
)
)
This should be a nice start. Go from here. A new modifier called “Skin XML” should appear in the modifier list.
The issue with what you are talking about is that you are now going to need that new skin modifier loaded on all the systems that need to load that file. Why can’t it just be a stand alone script that you run? That is what I have.