[Closed] mxs glitch?
Run the mxs below, …as you will see, the presets bar appears and all is good…now save the
file, close max and reopen…this generates an error – “dll not found”
rec = Rectangle length:25 width:10
select rec
modPanel.addModToSelection (EmptyModifier ()) ui:on
Dyndef = attributes DynamicMaps
(
parameters main rollout:dyna
(
EyeWrinkle_LEFT type:#float ui:EyeWrinkle_LEFT
)
rollout dyna “Dynamic Rig Maps”
(
label lbl1 “EyeWrinkle_LEFT”
spinner EyeWrinkle_LEFT “” type: #float align:#center range:[0,100,10]
)
)
custAttributes.add $.modifiers[1] dyndef #unique
custAttributes.add $.modifiers[1] CustomAttributesPresets* #unique
Any suggestions?
it works ok for me, maybe you have a corrupt or missing file in your 3ds max installation
Yes it works but* have you saved, then re-opened the file after closing max?
Hmmm…now I’m confused. Don’t think anything’s wrong with my installation…using max 2017 but the same thing happens using max 2018. I can’t have 2 faulty installations, surely?* Thanks anyway
This is relate to preset CA.
I forgot the exact detail, but casically your preset CA is lost or something.
Solution is you need to remove preset CA.
Alright, now i can see what is going on!. You have an asterisk at the end of CustomAttributesPresets so that’s why i didn’t get the error. Without the asterisk the preset is created and i got the error.
The way to fix it is just to remove the #unique at the end of the last line.
cheers
no the asterisk is just an artifact of this post…it’s not in the original code…I have asked the presets inventor, Paul Neale, to look into it but he hasn’t got back to me yet…there is a* brute force work around of simply adding the code for the thing but i prefer elegant solutions
I gave you the solution in my previous message already lol.
Remove the #unique in the last line of the code where you add the preset
Don’t come here much anymore. I have had a couple people ask me about this but I have not had time to look at what was done. The original code was a scripted plugin, it was changed to a CS Def, really they should be very similar. Would have to dig in and see what is causing it. If I find time soon I will give it a try.*