Message 1 of 1
Undo API command?

Not applicable
10-23-2012
05:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?