Subtract shapes with script

I’m writing a script to subtract first layer with the second layer of a Master.
I guess I have to use something from here, but I’m stuck:

I didn’t find infos about Glyph3 and how to subtract on the forum…
If someone can clarify the subject for me, thanks

There is a subtractPaths() function that is missing in the documentation. It takes two lists of paths as input. The paths and the subtracting paths.

1 Like

I’m trying to make it work but haven’t managed to. Could you give me a sample code please?

[edit] Never mind, I figured this out.