Open GoogleCodeExporter opened 9 years ago
[deleted comment]
There is selectlayer() to choose which layer you're drawing on (and reading
from), but I think it's buggy: on script startup only the current layer/frame
is backup up, so if you draw on other frames, it will alter previous "undo"
steps.
To avoid the issue, you can use setpicturesize(getpicturesize()) because it
will force a backup of all layers/frames.
Also, I just saw there is no way to query the number of layers, so you'd have
to start on zero and pcall() until it raises an error.
Original comment by yrizoud
on 10 Dec 2012 at 11:06
Original issue reported on code.google.com by
00a...@gmail.com
on 10 Dec 2012 at 12:13