Message 1 of 7
Adding Scripted modifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.