PDA

View Full Version : My script - MaxProject and Rollout Close Error


xcvbnm
09-21-2004, 06:55 PM
I wrote a maxscript which would load at startup and pop a dialog to create a project folder etc [Just like a VC++ project] or to just open last opened file.
The script is attached.
Only problem is when I load it from run script, it works ok and exits. But when I copy to the max startup scripts folder and it runs automatically, it gives an error on exit -

>> MAXScript Rollout Handler Exception: -- Type error: closeRolloutFloater requires RolloutFloater, got: undefined <<

Anybody got any ideas? why is this happening
Thanks
I'll post the updated version, if I fix this problem.Any other suggestions are also welcome :)

lechoo
09-22-2004, 10:01 AM
Try declaring MaxProjectFloater as global variable in Inits

--Inits
global MaxProjectFloater

In my case it worked

xcvbnm
09-22-2004, 10:21 AM
Thanks a lot lechoo, it worked !
Updated script is attached.
I'm using it for 3dsmax5, should work for other versions I guess.

CGTalk Moderation
01-19-2006, 08:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.