Forums > MaxMSP

Adding "Undo" Button to the LCD object

November 13, 2009 | 12:04 am

Any ideas on how to create and/or hook up an "undo" button to the lcd object?
I’ve searched online and found a patch that creates an undo button but it doesn’t hook up to the lcd object. Any tips?


November 13, 2009 | 1:00 am

like somebody here recently said in a similar situation: please be more vague.

what do you want to "undo"? a quickdraw-style command?


May 20, 2010 | 1:48 pm

I’m going to try it with sprite recordings….


May 20, 2010 | 2:08 pm

it is a lot of work but possible.

"undo" means keeping track of every action … in the case of lcd every
command to sprites, pictures, quickdraw-style messages or whatever.

all these things are messages .. usually lists …. so you need to find a way
how sotre and recall all those messages you are going to send (and undo/redo)
to lcd.

if you do it right, you will end up with something which works with other
objects or whole patches, too …
 
-110


May 20, 2010 | 11:36 pm

probably [coll] or [jit.cellblock] or even [umenu] to store the lists, then you can recall whatever ones you want. you can hack together an undo with [preset] too.


July 5, 2010 | 7:34 pm

in the end I used: writepict and readpict.

made a perfect undo and redo system!

only thing is that it doesn’t save to ram but
to hd in separate files, so it could be slow. But
in my case it is not slow at all. Don’t
experience any difference…


Viewing 6 posts - 1 through 6 (of 6 total)