
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
roll = rolloutCreator "Attributes_roll" "Attributes"
roll.begin() roll.addControl #dropdownlist #attrType_drop "Type" paramStr:"pos:[42,34] width:80" roll.addHandler #attrType_drop #selected paramStr:"indexNum" codeStr:"pass()" filter:on addRollout (roll.end()) addAttrsWindow rolledUp:false border:true
>> MAXScript Rollout Handler Exception:
-- Syntax error: at (, expected do
-- In line: ( <<
I have been trying to dynamically create my dialogs for awhile now with a fair bit of success. The first major hurdle I have come across is the above code with error. I am trying to create a dropdownlist and then add a handler to it so whenever the selected item is changed it runs a bit of code. Please let it be known that pass() is not my code, I put it in there as a placeholder because the string for my actual code is quite long. And with pass() in there it will still raise the same error as my real code would. I believe that it may have something to do with how its creating the definition from the string when passing it to the addRollout command. Somehow the definition string is not being written properly and its expecting a do in there somewhere and just isn't getting it. Has anyone else ran into this problem with the rollout creator? Thanks
Matt
Solved! Go to Solution.