Menu Callbacks

Callback

Description

Init (Menu)

For dynamic menus, this callback is fired every time the menu is accessed. For static menus, this callback is fired the first time the menu is accessed after the plug-in is loaded.

This is where you add items and commands to a menu.

Menu Item Callbacks

Fired when a user selects the menu item. The name of a menu item callback is specified in the call to AddCallbackItem in the Init callback.

Term

Fired when a plug-in is removed from Softimage (just before Softimage calls XSIUnloadPlugin). For example, Term is triggered when you exit Softimage or unload or update the plug-in.

Term is fired only if Init was fired at some point. If the menu was never opened, then Term has nothing to do.

Unload, Reload

Fired when the plug-in is cached (reloaded) and uncached (unloaded). By default, all plug-ins are cached, but users can remove a plug-in from the cache (by right-clicking a plug-in in the plug-in tree and clearing the Cached checkmark).

Unload and Reload are fired only if Init was fired at some point. If the menu was never opened, then Unload and Reload have nothing to do.



Autodesk Softimage v7.5