Nipple Scripting

H owdy folks! The nipple cover August 15, 2017 was more or less generated with a custom script written in Applescript. If you’re an Adobe nut and haven’t played around with scripting you need to start. There are some powerful things that can be done in Applescript and Javascript which can automate the crap out of your daily workflow.

Below is a script that runs in Illustrator CS5 that selects every item on the active document, generates random CMYK values from user-defined ranges then randomly scales the objects to a user-defined range. It’s painfully simple and works on more than just nipples.

 

Enjoy.

 

tell application “Adobe Illustrator”

set obj to selection as list

set allMyItems to every path item of current document

repeat with myItem in allMyItems

set rndCyan to random number from 1 to 5

set rndMagenta to random number from 20 to 55

set rndYellow to random number from 1 to 5

set rndBlack to random number from 10 to 20

set fill color of myItem to {cyan:rndCyan, magenta:rndMagenta, yellow:rndYellow, black:rndBlack}

set rndScale to random number from 90 to 120

scale myItem horizontal scale (rndScale) vertical scale (rndScale) about center

end repeat

end tell

No comments yet.

Leave a Reply

Got an Opinion?

YourOpinionMatters

We are interested to hear what you think.  Please send us a message.  

Irish Homecoming

3-Celtic Woman 18 jpg 2

Celtic Woman at Clark State gala The four women of Celtic Woman (L-R) Tara McNeill, Mairead Carlin, Éabha McMahon, and […]

BOOM goes your twenties!

image3-1

Dare to deny the passage of time at the Mathile Theatre (L-R) Jonathan (Bobby Mitchum) seeks help through his first […]

The woes of legal weed

775_5586162

Getting your “pot card” In addition to federal and state law, local ordinances may limit growers, dispensaries, and individuals. By […]

The graying of green

1420_5772728

Ambiguity and contradictions still plague marijuana laws Despite the new law going into effect, much remains to be done for […]

Girl, we couldn’t get much higher

20170513-DSC_0455

Evil Eye Gypsy brings psychedelic rock to South Park Tavern Evil Eye Gypsy (L-R) Cat Shift, Sherree Emmons, Aaron Snyder, […]