Skip to content

martinnj/MayaPluginSample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MayaPluginSample

Repo to contain a sample Maya plugin with initialize, uninitialize functions and a cmake build file for cross platform compilation.

Life of a Maya command plugin

  1. Maya calls the creator function which sets up an object that contains the working code.
  2. The constructor runs, doing its work.
  3. The doIt function gets called, doing the actual work the command should do.
  4. Maya calls the "is undoable" function, if it returns false the destructor is called and the command object gets "destroyed". If it returns true however, Maya returns to normal working mode.
  5. object lives on in the background, if undo/redo is requested, the functions below gets called, if the plugin is unloaded, the destructor gets called.
  6. If the command gets pushed out of the buttom of the undo/redo stack, the destructor gets called.

About

Repo to contain a sample Maya plugin with initialize, uninitialize functions and a cmake build file for cross platform compilation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages