Scripted Utility Disappearing

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I created a Scripted Utility as a UI for some other scripts. The utility creates and saves some custom attributes in the max file to be used as global variables. (Simply declaring and using global variables in the utility did nothing. I had to use custom attributes.)
To run my custom utility, I do this:
Utility Tab > Maxscript Button > Utilities Pulldown > select my scripted utility
The first time I do this, it works as expected. However, if I navigate to another tab, like the Modify Tab, then go back to the Utility Tab, my custom utility isn't there. It doesn't show up in the Utilities pulldown. If I try to manually run the utiltiy or drag-and-drop the maxscript into a Max window, I get an Unknown System Exception error.
Below is what shows up in the Listener.
-- Error occurred during fileIn in <File:C:\Program Files\Autodesk\3ds Max 2011\scripts\startup\pko.ms> -- Error occurred in anonymous codeblock; filename: C:\Program Files\Autodesk\3ds Max 2011\scripts\startup\pko.ms; position: 3637; line: 121 >> MAXScript FileIn Exception: -- Unknown system exception <<
I can't figure out why this is happening. It does the same thing with other custom utilties, not just this particular one.
I will post an example of the code in a follow up post.