Notifications
Clear all

[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?

12 Replies
1 Reply
(@denist)
Joined: 10 months ago

Posts: 0

does it say what DLL was not found? Could you post whole error message?

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?

yes, I did what you said and no error was prompted.

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

 PEN

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.*

Page 1 / 2