Sg2.9
Stencil automation
Recent RSS
Stencil automation
Date:  11. May 2007, 20:04

Automating tedious steps seems to be a great reason to use Scriptographer. I find that preparing files for a laser-cut spray stencil to be a bit tedious and am wondering if there is a way to use a script.

Is is possible to write a script to find one or two of the shortest distances of the outside border of a compound path to the inside border (or shortest point to point), then create a thick line, expand it, and then subtract it from the shape area?

In the image example, I show my steps for doing this by hand with type, choosing visually pleasing areas to cut over thinnest areas.

Hopefully someone can get inspired here. I can't really code.

Re: Stencil automation
Date:  17. May 2007, 13:05
Quote:
Is is possible to write a script to find one or two of the shortest distances of the outside border of a compound path to the inside border (or shortest point to point), then create a thick line, expand it, and then subtract it from the shape area?

Sure that's possible, but it's not what you are doing manually in your example. For starters; you are only using vertical lines. Furthermore, your adding openings to both the bottom and top of the O, butyou're only adding an opening at the bottom of the A. As you see these are asthetic choices wich a script will not make based on "the shortest distances of the outside border of a compound path to the inside".

you should probably start out by making a list (array) of where the opening (the white line) should be placed and how long it should be for each character (in the font). Then you can let scriptographer loop through your text/shapes and add the apropriate opening to the lettershape.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Shattered 18.03.11