Undo API command?

Undo API command?

Anonymous
Not applicable
319 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
320 Views
0 Replies
Replies (0)