[Bf-committers] Undo yet again

Martin Poirier bf-committers@blender.org
Tue, 20 May 2003 18:58:51 -0700 (PDT)


> Theeth at elysiun has already written a python undo
> script. :)
> I'm not sure how well it works, or its scope.

The script builds a per object historical tree of the
loc, rot and size parameter, with a user set level of
undos and redos. Data is saved for all the selected
object when you click in the GUI window (you don't
need to actually click the Store button, just clicking
on the background will do). The saved state are kept
in a binary format (using the Pickle module) in a .dat
file with a name corresponding to the name of the
.blend file you are currently using. Undo/redo
simultanuously all the selected object (if they have
saved states left).

still need a bit of testing, but it works correctly
most of the time.

you can download the file there:
http://www.clubinfo.bdeb.qc.ca/~theeth/VirtualUndo.py

enjoy

Martin

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com