Eyeon:Script/Reference/Applications/Fusion/Classes/Composition/Undo
From VFXPedia
Contents |
Composition : Undo
Arguments
Undo ( count )
- count(required, number)
the count argument specifies how many undo events to trigger.
Returns
This function does not return any values.
Remarks
The Undo function triggers an undo event in Fusion. The count argument determines how many undo events are triggered.
Note that the value of count can be negative, in which case Undo will behave as a Redo, acting exactly as the Redo() function does.
This function can be very useful to back-out of some changes if something goes wrong.
Requirements
- eyeonScript 5.0
- Fusion 5.0
Examples
composition:StartUndo("Replace Clips") ... set some clip names ... set 'err = true' if we have a problem, like, say, ... clip not found for one of our loaders.
composition:EndUndo(true)
if err then
composition:Undo(1)
-- Back out of the changes! end
Tips for Undo (edit)
EyeonTips:Script/Reference/Applications/Fusion/Classes/Composition/Undo