February 2 2012 • 5:59 PM

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

9 Responses discussing this post. Add yours below.

  1. February 2nd, 2012 • 7:16 pm • Link

    Thanks, David! I was looking for an application to do this a few weeks ago. This is more fun!

  2. February 6th, 2012 • 1:43 am • Link

    Jongware did something similar back in the day. Was never a write-up like this as such, but the associated forum was at http://forums.adobe.com/message/2926441

  3. Jongware
    February 6th, 2012 • 2:23 am • Link

    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

  4. SmartyGuy
    February 12th, 2012 • 9:14 am • Link

    I found using fibonacci numbers produces some beautiful results. I was inspired by this young, brilliant mathematician:

    “Doodling in Math: Spirals, Fibonacci, and Being a Plant”.
    http://www.youtube.com/user/Vihart

    All 3 videos are worth watching.

  5. Aaron
    February 14th, 2012 • 1:19 pm • Link

    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).

  6. Derrick
    February 15th, 2012 • 4:52 pm • Link

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

  7. Jongware
    February 16th, 2012 • 2:16 am • Link

    Why “a hard time”? It’s right there in the online help.

    You can also try How to install scripts in InDesign, but it basically tells the same.

  8. Derrick
    February 16th, 2012 • 2:38 pm • Link

    Got it. Thanks… Wonderful script.

  9. February 16th, 2012 • 5:23 pm • Link

    This script is so fun! I used it to make a flower.
    1. Make a NINA spirograph.
    2. Copy.
    3. Paste into Illustrator.
    4. Live Paint Bucket.
    5. Twirl.

    Thanks so much for sharing. I will definitely be using this script.

Subscribe to the Discussion

Get the ongoing discussion surrounding "Using NINA Scripts for Spirograph Patterns in InDesign" delivered to you. Click here to subscribe via RSS.

Leave a Reply

You can use limited HTML tags, such as <em></em> for emphasis/italics and <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .

InDesignSecrets reserves the right to edit and/or remove posts and comments.