If you are using OpenMaya API in your script (i.e. not pymel interfaces to the API) then yes, you must do this as an MPxCommand with undoIt() and redoIt() and load it as a plugin.
On Thu, Oct 15, 2009 at 4:20 PM, Brandon Harris <[email protected]>wrote: > > OK. So I have finished a small procedure for averaging weights on > components and I have come to a point where I would like to set it up > for undoing and redoing. The only information I have to describe how > it's done is with Complete Maya Programming, but in it, all of it is > written in C++ and it's written as a compiled plugin. So my question > is, what changes about that with this all being in Python and run as a > script rather than a plugin? > Would I need to convert my procedure into an object and have the > undoIt and redoIt methods, or do I need to build the whole thing up as > MPxCommand and run it as a plugin? Any information would be great! > > thanks! > > Brandon L. Harris > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
