Illustrator Scripting for a Laser Cut Epitrochoid Wallet

by MaddyMaxey in Circuits > Art

1812 Views, 10 Favorites, 0 Comments

Illustrator Scripting for a Laser Cut Epitrochoid Wallet

5493887126ece27ff100004b.jpeg

Adobe Illustrator isn't just a GUI. it can also accept scripts in a language called JSX, which is very similar to Javascript. For this project, we'll take advantage of Javascript's scripting capabilities to make a wallet embellished with epitrochoids.

Gather Materials

IMG_9105.JPG

There are two parts to this project. One process occurs in the bits world and the other, in the world of atoms. Below is a materials list for what you'll need to finish this project. I've separated the necessary tools just in case you're solely interested in either the wallet, or scripting for illustrator :

.AI scripting:

Adobe Illustrator CS6

Adobe Extend Script Toolkit

Epitrochoid script (you can grab this from my Github)

You can also just use my vector file and skip the scripting bit if you'd like to!

Laser Cut Wallet:

12x24 piece of 1/8" thick acrylic

Washer

1/4" Bookbinding screw post

Super Glue or epoxy with fine tip

Access to a laser cutter. Make Mode is great if you're looking for a service that can supply materials!

Scripting in Illustrator

Capture d’écran 2014-08-18 à 18.23.25.png
Capture d’écran 2014-12-18 à 21.23.21.png
Capture d’écran 2014-08-27 à 10.08.04.png

To get started, open up ExtendScript toolkit and open up Adobe illustrator. Try a simple, javascript "hello world" script by matching your settings to the ones shown in the screenshot above. The left drop down should say Illustrator CS6 and the right one should say main. The little link all the way to the left will glow green if this is done correctly.

Experiment and have fun with Extend Script. You can make quick and complex vector art if you have a few moments to kill.

Implementing the Epitrochoid Script

Capture d’écran 2014-12-18 à 21.11.02.png
Capture d’écran 2014-08-29 à 14.31.53.png

Now that you're synced up, enter the epitrochoid script into ExtendScript.

If you'd like to avoid coding, you can simply open up the vector file. Play with the settings or vector art to make something that suits you! To learn more about parametic equations and epitrochoids, Wikipedia is very helpful.

Laser Cutting

Capture d’écran 2014-12-17 à 11.58.53 (1).png
IMG_9049.JPG
IMG_9056.JPG

For an Epilog laser cutter, you can color code between raster and cut. Essentially, you want to raster the details and laser cut the actual wallet shapes. If you outsource, you should be able to have a pro do your settings. Make sure the raster is at least 1/4 of the normal power as these shapes have hundreds of lines and will chew up the acrylic otherwise (see above).

Assembly!

IMG_9083 (1).JPG
IMG_9048.JPG
IMG_9086.JPG
IMG_9109.JPG

The assembly is very straight forward. Glue or epoxy the 3 walls to the back (my back piece has the code for the epitrochoids). Glue together the three top pieces altering curved edges. Glue this to the back as well. Once the bottom piece is finished, add the binding element and washer through the pre-cut hole. Screw everything in tight enough for tension. I attempted using a magnet for closure, but tension seems to work best.

Fin!

Let your wallet dry for 24 hours before use and it might be helpful to add a drop of epoxy/glue under each binding element to keep tension.