List of Interface::Execute Command Options

3DS Max Plug-In SDK

List of Interface::Execute Command Options

See Also: Class Interface

In MAX 2.5, the following #defines may be passed as the cmd argument to the method Interface::Execute().

Note that these may be removed from MAX 3.0. Developers may wish to use the API provided by Structure NotifyInfo for pre and post save callbacks.

I_EXEC_REGISTER_POSTSAVE_CB

This command registers a callback which is called after a File / Save operation has occured.

For example, here's how you would use it:

static GenericCallback mycb;

GetCOREInterface()->Execute(I_EXEC_REGISTER_POSTSAVE_CB,&mycb);

and when you are done:

GetCOREInterface()->Execute(I_EXEC_UNREGISTER_POSTSAVE_CB,&mycb);

For another way to do this, see Structure NotifyInfo.

I_EXEC_UNREGISTER_POSTSAVE_CB

This command un-registers a callback which is called after a File / Save operation has occured.

I_EXEC_REGISTER_PRESAVE_CB

This command registers a callback which is called before a File / Save operation has occured.

I_EXEC_UNREGISTER_PRESAVE_CB

This command un-registers a callback which is called before a File / Save operation has occured.