That would be perfect @Tosche!
@Tosche Thanks!
I think delete paths (and anchors) in all selected glyphs in the current master (and re-run in the other masters if necessary) would be sufficient, but this mockup would cover any imaginable scenario, so yes, even better!
Done, itâs available on my Github repository as Clear Background blah blah (also G3 plugin manager)
Sorry the script is not working, Iâm working on it now.
@GeorgSeifert Upon debugging the script, I noticed there are things I can no longer do straight with GSPath. I cannot clear paths by doing layer.paths = []
for example. RemoveLayer
and removeComponent
are also no longer to be seen, etc⊠I understand that treating them as the same can be convenient sometimes, but I do not see the benefit of removing such functions. I do not think the distinction between path and component has become somehow less important. Could you elaborate on the change or point me where you have already?
@Tosche Awesome! Thanks for being so quick.
Yes, was just about to post that I canât get it to work.
Installed via the Plugin Manager, Glyphs 3066. I have all the modules installed. Macro window doesnât output any errors.
Sorry, itâs my bad habit of releasing before testing
Itâs done and functional!
Perfect, thanks so much!
The distinction is still there. Both are in the same list now. I did that to be able to mix them. This is important for color glyphs and for masking (using paths to mask components and the other way around.
The layer.paths
accessor is there for convenience but is read only (for now).
I understand the benefit of treating paths and components the same, it is indeed useful in many occasions. I just do not like that what used to be possible is no longer, and I cannot think of a good reason. Itâs great if shapes was an addition, not replacement (thatâs kinda how it feels like now).
I could make the .paths and .components proxies behave similar to the old way. Except index based insertion. That limitation would be even more confusing.
Hi, sorry to revive this (again), I just find it crazy that thereâs no easy option to delete all background stuff on Glyphs. The Clear Background option is not working and Toscheâs script seems to do nothing, I donât understand why. I work on Glyphs 3.0.5 (3124) and installed Toschiâs script through the Plugin manager.
Is it possible to add an easy built-in âDelete backgroundâ directly in Glyphs?
Clear Background (from Paths menu with Option key depressed) is working for me.
macOS 10.13.6, G3.0.5 [3124] â FWIW, Clear Background works for me â on paths and components. If it is images to be cleared, I use one of mekkablueâs two scripts, Remove Images or Remove All Images. I have not encountered any issues.
It works for me, too. Can you maybe make a screencast of what you are doing?
I would not add images to the background layer. Put them in the foreground.
Thatâs because you are looking to clean a layer not a background.
Press Cmd+B to edit background.
If you want to remove all non master layers, you can run âDelete all non-Master Layersâ by Jens KutĂlek
Ah thanks the script by Juns KutĂlek worked fine.
But I donât get this Cmd+B feature though. The letter disappears and it gets red.
I cannot edit the vectors, I donât see anything so whatâs the point?
Background is typically same as if you print a letter on tracing paper, and place another version behind it.
You can toggle Background with Cmd+MAJ+B.
Check Page 44 of Glyphs3 handbook :