Caching of the undo and redo information in a Anim Curve Change cache is required primarily to support interactive editing of Anim Curves in the UI.
Anim Curve Change caches are used as persistent storage for information concerning changes to Anim Curve Nodes.
When invoked with a valid Anim Curve change parameter, the remove keyframe and add keyframe methods of the Anim Curve Function Set (MFnAnimCurve::remove() and MFnAnimCurve::addKeyframe(), respectively) cache the change information in the Anim Curve Change cache so that the caller can undo and redo the changes as required.
If the same cache is used for a series of Anim Curve edit operations, then the cache maintains an undo/redo queue which allows all changes in the series to be undone or redone. If selective undo/redo is required, then a different Anim Curve Change cache is required for each edit.
Use Anim Curve Change caches in conjunction with the Anim Curve Function Set (MFnAnimCurve) to perform undoable and redoable edits on Anim Curves.
Public Member Functions
|MAnimCurveChange (MStatus *ReturnStatus=NULL)|
|MAnimCurveChange::MAnimCurveChange||(||MStatus *|| ReturnStatus =
No additional action.
|Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved.||Generated with 1.5.6|