Hello
I'm working on a script nowdays, but I have got some problem with the Rollouts...
I made a very simple script to show you what is my problem. My goal was to create a button, wich can create a new rollout. The most interesting, that the error message is only in the first run of script, when I run this script second time, it's work.
The script:
rollout MENU "MENU"
(
button On01 "On" width:90 pos:[10,10]
button Off01 "Off" width:90 pos:[10,40]
on On01 pressed do
addRollout Rollout01 menu_windo
on Off01 pressed do
removeRollout Rollout01 menu_windo
)
rollout Rollout01 "Rollout"
(
button Button01 "Button" width:90 pos:[10,10]
)
menu_windo = newRolloutFloater "Rollout" 150 180
addRollout MENU menu_windo
addRollout Rollout01 menu_windo
And I got this error message when I run this script first time:
"Type error: CreateDialog requires RolloutClass, got: undefined"
It's a picture about the happenings: https://dl.dropbox.com/u/1152958/script_error.jpg
Thanks your helps in advance.
Matyrix
By Matyrix · 2009-12-02
holycause · 2009-12-04
Admin · 2009-12-04