Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Disable object creation.

Disable object creation.

Anonymous
Not applicable
330 Views
2 Replies
Message 1 of 3

Disable object creation.

Anonymous
Not applicable
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!
0 Likes
331 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
I have just realised that if I put a rollout in my scripted object I can highjack it's 'open' callback to get a callback every time my scripted object moves into creation mode. Not the best solution but better than nothing.

Can anyone better this?
0 Likes
Message 3 of 3

paulneale
Advisor
Advisor
I was just about to suggest this method. Not great but will work.

damianh wrote:
> I have just realised that if I put a rollout in my scripted object I can highjack it's 'open' callback to get a callback every time my scripted object moves into creation mode. Not the best solution but better than nothing.
>
> Can anyone better this?
Paul Neale

http://paulneale.com


Paul Neale




EESignature

0 Likes