SwapToLayer('background'), foreground becomes blank
martin last edited by gferreira
I'm having trouble with the
I have two layers, my current foreground layer (containing a rectangle) and background layer (containing an oval). if I now run the following
currentGlyph = CurrentGlyph() currentGlyph.swapToLayer('background')
the rectangle is moved to background, but the oval disappears, foreground becomes blank. I had expected that the content of the layers is just swapped, foreground > background and background > foreground.
- swap will copy the glyph to the destination layer and clear the current layer
- flip will copy the glyph to the destination and copy from the destination layer back to the current layer
as you already found out, thanks Jo
martin last edited by
That’s what I was looking for!
jo last edited by gferreira
you might try:
hope that helps,