by the way, did you try playing with undoInfo -openChunk and - closeChunk? I haven't messed with them, but they are the magic that allows you to execute a "for" loop in the script editor and then undo the entire loop at once.
-chad On Mar 23, 2009, at 8:47 AM, Paul Molodowitch wrote: > > Oh - and it's sort of more complication, but in order to get my undo / > redo working properly, I had to then have my api callback create a > scriptJob (with compressUndo=True) - that way, all the scene-changing > code is done with script level (ie, maya.cmds) code... when I tried to > mix it up by calling my script-level code within the api callback, the > undo would work, but not redo. > > - Paul > > On Sun, Mar 22, 2009 at 10:16 PM, Paul Molodowitch > <elron...@gmail.com> wrote: >> Oops... that should probably be: >> >> MEventMessage.addEventCallback("SelectionChanged", selectCallback, >> userData) >> > > > --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---