SimpleObject scripted plugin save/load crash

SimpleObject scripted plugin save/load crash

Anonymous
Not applicable
450 Views
1 Reply
Message 1 of 2

SimpleObject scripted plugin save/load crash

Anonymous
Not applicable
Can anybody help with a crash I'm getting with a scipted plugin?
I'm new to MAXScript and hoping it's just something I've missed out...

I've written a very basic simpleobject plugin. It has a classID generated by genClassID() and all works fine when I add it.
My problem is that when I save the scene then try to reload it, I get an error message "An error has occurred and the application will now close. Do you want to attempt to save a copy of the current scene?", after which Max crashes.

I've added the path where the script is stored to the system paths, and the path also appears in the plugin manager.
I've also tried copying the script to \Autodesk\3ds Max 9\stdplugs\stdscripts and to \Autodesk\3ds Max 9\Scripts\Startup with the same result.
I've also tried several different classIDs from genClassID()

Have I missed out an essential step somewhere?
Thanks
0 Likes
451 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Solved.
If anyone's interested in the fix, it just needed an empty parameters section:

parameters markerRootParams
(
)
0 Likes