@frederik this works great. Any chance you can do this too for the scripts below the Extensions section as well as the sidebar in the script window?
Posts made by martinplus
RE: SwapToLayer('background'), foreground becomes blank
That’s what I was looking for!
SwapToLayer('background'), foreground becomes blank
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.