Message 1 of 3
Disable object creation.

Not applicable
03-20-2009
03:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have written a scripted geometry plugin that I would like to be able to disable and enable via maxscript during a single running instance of max.
I was hoping that if I re-evaluated the scripted plugin with the 'invisible' parameter set to true or false I could achieve this. Unfortunately, max seems to cache whatever visibility is set the first time the scripted plugin is executed.
Alternatives to this approach might be:
- Finding a way to unload the scripted plugin via maxscript
- Finding a way to hide/disable the scripted plugins button in the creation palette via maxscript
If neither of these approaches is doable, I guess I would like to at least get a callback from max when the scripted plugins creation button is depressed....
Has anyone had any experience with this sort of thing?
Many thanks!
I was hoping that if I re-evaluated the scripted plugin with the 'invisible' parameter set to true or false I could achieve this. Unfortunately, max seems to cache whatever visibility is set the first time the scripted plugin is executed.
Alternatives to this approach might be:
- Finding a way to unload the scripted plugin via maxscript
- Finding a way to hide/disable the scripted plugins button in the creation palette via maxscript
If neither of these approaches is doable, I guess I would like to at least get a callback from max when the scripted plugins creation button is depressed....
Has anyone had any experience with this sort of thing?
Many thanks!