Script Access To Undo History
pfunkyfize
Posts: 478
Hi all,
I'm trying to get the action of my simple script that translates an object to another location to be undone by a CTRL-Z keystroke. Is that possible?
I have written the script that moves the object around with the setWSPos() method of an object but would like to be able to CTRL-Z/Undo it and have the object return to its original position. Is the Undo history some sort of script accessible scene aray/stack?
Thanks!
Comments
Yes, there is the DzUndoStack object, but you better use the beginUndo() , cancelUndo() and acceptUndo( String caption ) from the Global object.
Use something like:
Thanks for the tip!