On 30/04/2014 at 07:03, xxxxxxxx wrote:
Hey,
i know how the Undo function in the SDK works, but i have a problem with it :D
How can i undo a variable?
As a example i have a counter and every time i click the counter get + 1.
How can i redo the counter?
The problem with pseudo code:
counter = 0
onClick(){
c4d.StartUndo()
counter = counter + 1
c4d.AddUndo(counter) # how i want it ;)
c4d.EndUndo()
}