Community
Having this script in scripts/startup (script.ms file)
plugin modifier modifier_B name:"B" classID:(genClassID returnValue:true) ( rollout b "TestB"( button btnB "ADD A" fn addA obj = ( addmodifier obj (modifier_A()) ) on btnB pressed do ( for o in objects do ( addA o ) ) ) ) plugin modifier modifier_A name:"A" classID:(genClassID returnValue:true) ( rollout ra "TestA"( button btnA "OK" on btnA pressed do ( print "Modifier A" ) ) )
When hitting buton "TestB" is causing an error (undefined modifier), even the modifiers should be global! Changing the order will fix this error. Why is this happening? Is it BUG with the chance to be fixed soon? It behaves the same way in all version of MAX.
I'm sorry, but this code is not giving success... Am I missing something?
plugin modifier modifier_B name:"B" classID:(genClassID returnValue:true) ( local modifier_A rollout b "TestB"( button btnB "ADD A" fn addA obj = ( addmodifier obj (modifier_A()) ) on btnB pressed do ( for o in objects do ( addA o ) ) ) ) plugin modifier modifier_A name:"A" classID:(genClassID returnValue:true) ( rollout ra "TestA"( button btnA "OK" on btnA pressed do ( print "Modifier A" ) ) )
Can't find what you're looking for? Ask the community or share your knowledge.