Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Undo API command?

Undo API command?

Anonymous
Not applicable
261 Views
0 Replies
Message 1 of 1

Undo API command?

Anonymous
Not applicable

import maya.cmds as cmds
cmds.currentTime( 10 )


import maya.OpenMayaAnim as apiAnim
apiAnim.MAnimControl.setCurrentTime( 10 )

Above 2 cases get same result, right?
But, I find that there is a difference between them.
I can undo MEL-based command, but I can't undo api command.
I thought that api command executes more quickly than MEL-based one, so I tried to work with api command.
Can I make api command to be undoable?
Have I to make it as a plugin?
0 Likes
262 Views
0 Replies
Replies (0)