Using NINA Scripts for Spirograph Patterns in InDesign

snowflakes2.png

I showed a little script in my Macworld Expo class last week and people said “whoa!” so I said I’d post it here. This was written by Olav Martin Kvern (Ole to his friends, which means pretty much everyone), when we were working on Real World InDesign.

(In fact, I’m having beer with Ole and Bob Bringhurst tomorrow, so that’s even more reason for me to post this now.)

The script allows you to create spirograph-like patterns extremely easily from within InDesign. It’s not spirograph exactly; rather, it’s an algorithm called NINA based on some code that Matt Freedman came up with at the University of Washington. (NINA stands for NINA Is Not an Acronym, proving once again that codes have the driest of humor.)

Anyway, I mentioned this script in the comments on this blog post about making snowflakes, but I figured I’d better bring it to light here in its own blog post, because it’s just so dang cool.

To use the script:

  1. Download the script here, unzip it, and install it.
  2. Drag the corner, where the rulers intersect, to someplace on the page. This sets the 0,0 point on the page, and is where the center of the pattern will be.
  3. Run the script by double-clicking on it in the Scripts panel.
  4. Fill in the values. I cannot tell you what to type here; I don’t even know what these numbers do! Play with it.

That’s it. Here are a few more examples that I came up with. Enjoy!

Nina1

Nina2

Nina3

Nina4

Tags
Related Articles
Comments

9 Comments on “Using NINA Scripts for Spirograph Patterns in InDesign

  1. Hello, I have CS5 and I am having a hard time finding where to place the script. I would really appreciate some assistance.

  2. Been wanting something like this for a long time. Thanks Ole and David!

    FYI the first field, ‘Number of iterations’, specifies the number of points. If you enter 2 you’ll get a flat line. To get a circle, set both a_pulse and b_pulse to 1.

    By the way, I got an error when I tried the ‘open path’ option with the default values (CS4, 6.0.6).

  3. Actually, the NINA Script predates mine by years. But I’m still very pleased with the one where I integrated my own mugshot in it — scroll down that forum thread to see me smile :D

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>