undo in maya api

76 views
Skip to first unread message

s...@weacceptyou.com

unread,
Dec 13, 2015, 1:07:47 PM12/13/15
to Python Programming for Autodesk Maya
Hello,

i have been trying to setup an undo thingy as part of my python api script

def undoIt(self):
self.dagModifier.undoit()

there are other tutorials i have tried to follow but it doesn't seem to cover the same problem exactly. I am always coding in the script editor and just executing and then undoing / coding /executing and so on. I find it quicker to do it this way.

Obviously when i started adding api stuff into maya code when i ctrl z it would undo all the normal maya cmds stuff but leave the api stuff.

There are only a few areas in my script that require the api, but is there a neat way of just including the undoit() thing as part of the normal undo in maya when working from the script editor??

thanks alot,
Sam
Reply all
Reply to author
Forward
0 new messages