Rotate on a Specific Point – Illustrator Scripts

I wrote a free Illustrator script that lets you rotate objects around any X/Y point you type in, instead of eyeballing the centre point with the Rotate tool. It has live preview, units, copy-and-repeat, and a companion script that repeats the last rotation. Jump to the download.

I came up with it while designing a pattern for the lid of a wooden bench I’m building. I wanted a set of shapes rotated around one exact point, and I was frustrated by how little control Illustrator’s Rotate dialog gives you over that point. So, I asked Claude to write a small script, and a few rounds of tweaking later I had what I needed.

What it does

  • Custom centre of rotation: type an X and Y, or use the “Selection centre” and “Artboard centre” buttons.
  • Artboard or document coordinates: artboard mode matches the Transform panel (origin top-left, Y down).
  • Units: pt, px, mm, cm, in or pica. It starts on your current ruler unit.
  • Live preview: see the result before clicking OK.
  • Copy and Repeat: make a set number of rotated copies in one go, which is how I built the pattern below.
  • Arrow keys: Up and Down nudge the angle, X, Y and Repeat fields. Hold Shift for bigger steps, Alt/Option for finer ones.

Rotate About Point dialog showing angle, repeat count, and centre of rotation X and Y fields

The Bench Design

For this design I rotated copies in 45° steps, repeated seven times, all around the same centre point. Doing that by hand with the Rotate tool would have taken forever, and the point would never have been exact.

Vector design with shapes rotated around a single point

I exported the design as an EPS file because VCarve doesn’t take .ai files, imported it into VCarve, and previewed the toolpaths:

Design previewed in VCarve

I felt delighted as the CNC router carved my perfectly rotated design into the lid of the hallway bench:

CNC router carving the design into the bench lid

The design’s visibility drastically improved after staining, though I’m not too happy with how the stain looks on the alder wood I’m using. I’d probably use more expensive wood next time.

Stained bench lid showing the carved design

Download

The easiest way is the GitHub gist, which keeps the correct .jsx filenames and lets you download everything as a ZIP. If you’d rather grab the files directly, here are copies as text files (WordPress won’t host .jsx files, so rename them to .jsx after downloading): RotateAboutPoint and RotateAgain. RotateAgain repeats the angle, centre point, Copy setting and repeat count of your last rotation, which is useful for any precision rotation in Illustrator. Both scripts are free to use and modify.

Continue reading “Rotate on a Specific Point – Illustrator Scripts”

The Library

Andrea began reading The Lion, the Witch and the Wardrobe to our kids this morning and my son, Ian, kept breaking out of the flow to ask Siri for the time.

“Hey Siri, what time is it?”
“It’s 8:52am.”
…
“Hey Siri, what time is it?”
“It’s 9:07am.”
…
“Hey Siri, what time is it?”
“It’s 9:11am.”

“Ian!? What is your deal? Do you have some kind of appointment?” I asked.

He explained that today is Halloween and he was wondering how soon he could go trick-or-treating.

When the reading was over, Ian needed a distraction from this compulsive behaviour. As luck would have it, my plans for the day would do just the trick; we would go to the library. Lately, We’ve been going regularly, especially on weekends. It’s part of our new routine: read (or be read to), workout, practice drawing or painting, play the ukulele or the guitar, and then go to the library. I’ve been trying to cultivate some good habits for both of us, all done for their own sake.

Ian loves the library. He begs and begs and begs, and I tell him not until all the other parts of our routine are done and then we head over to this third place where Ian immediately heads to the computers — we don’t play video games at home but I have decided that one hour of guilty pleasure1 Microsoft gaming is ok.

The library has monthly draws and it turns out that I had won two of them — an evening with author Emily Austin and a family day pass to the YMCA. At first I wasn’t sure that I wanted to spend our date night listening to someone talk about writing. Then I realized I watch YouTube clips about writing all the time, so why wouldn’t we go see an author in person?

In fact, just last night I had been watching this Taylor Tomlinson interview, which put me onto Bird by Bird by Anne Lamott. I started reading it after we got back from the library, and this passage struck me just right:

“But I still encourage anyone who feels at all compelled to write to do so. I just try to warn people who hope to get published that publication is not all that it is cracked up to be. But writing is. Writing has so much to give, so much to teach, so many surprises. That thing you had to force yourself to do—the actual act of writing—turns out to be the best part. It’s like discovering that while you thought you needed the tea ceremony for the caffeine, what you really needed was the tea ceremony. The act of writing turns out to be its own reward.”

It makes me think about my day, the workout, the ukulele, even the hour of Ultimate Chicken Horse. I’ve begun to realize everything is a tea ceremony.

  1. My guilt; his pleasure[↩]

Patrick Stewart Dies at 86

When I heard the news that Patrick Stewart died, I started thinking about one of my favourite episodes of Star Trek: The Next Generation, Season 5, episode 25: “The Inner Light”. In that episode, Captain Picard is struck unconscious by an energy beam from an alien probe which embroils Picard’s mind into experiencing the complete life of a alien man and his doomed civilization in the span of 25 minutes.

The YouTube channel Art of Storytelling provides a fantastic review of this remarkable episode and explains why it was so memorable (and also why Stewart is so good in it):

For more on Stewart’s death, Aaron Couch has a piece with The Hollywood Reporter:

Patrick Stewart, the sophisticated actor who brought a Shakespearean touch to Star Trek and X-Men as he made an otherworldly transformation from British stage veteran to sci-fi icon, has died. He was 86.

Stewart died Wednesday at his home in Los Angeles following “a brief and poignant journey with Alzheimer’s disease and Lewy body dementia,” longtime spokesperson Kelly Bush Novak announced.

Most Star Trek fans have their favourite captain. For me that was Picard because he was smart, wise, firm, curious, empathetic, and all around just awesome. By all accounts those same adjectives apply to Stewart himself.

Jason Kottke has more in his lovely write-up about Stewart.

(Previously: Patrick Stewart on the Extras)

Slice of Life in the Shop

Today was my first day of temporary coverage teaching in the wood shop at the nearby high school. It’s been a couple of years since I last covered in the shop and, of course, a few things went sideways. By the end of the day, however, I had fixed most of them.

There was an error with a CNC file that caused the router to carve right off the student’s material. The solution? Flip it over and engrave again on the backside with the updated file. Problem solved!

Another issue was that the MDF sheets that had been cut for the back of each student’s nightstand were a half inch too narrow. The whole pile, which was supposed to last the entire semester, had the same error. I haven’t decided but I might cut some new ones to the correct size, or else maybe I’ll make everyone’s nightstands a half inch narrower; to be determined.

Some students left the chuck on the wood lathe after it became stuck and the bell rang. It took a minute (or maybe closer to 20) but after borrowing a tool from the neighbouring metal shop, I figured out how to get it unstuck, and I felt pretty good about it.

Lastly, the only issue that I haven’t yet solved is what to do about the students who would rather horseplay than do their projects. They have been fooling around the other times I’ve been in this class with them earlier this year and after giving them a big lecture about not goofing off and seeing as that apparently did not make an impact I was going to call their parents. As fate would have it, the kids got lucky because the admin assistants in the office haven’t finished connecting me to the online class management system and therefore I didn’t yet have access to their contact information. Since I’ve been forced to wait until tomorrow anyway, I guess they get one more chance.

Overall, it’s a pretty good gig, and I’m pleased to have picked it up. Tomorrow’s to-do list: lay down the law in class, settle the nightstand question, and hopefully avoid any more stuck chucks.

Top 100 TV Shows

Recently the New York Times asked actors, show runners, insiders, and other TV enthusiasts to rank the best tv shows of the 21st century. They then came back and asked readers the same poll and noted the differences. Here are The top TV shows according to 100,000 New York Times Readers.

I agreed with a lot of the choices (or they were shows I hadn’t watched) until about the mid 60s and then it started to fall of the rails. Rick & Morty coming in at 101 (on the runners up list) is a travesty. Nevertheless, judging from the shows I know, it looks like I need to add a bunch of shows in the top 50 to my watchlist.

Continue reading “Top 100 TV Shows”

The Bad Review Revue

The Whisper Man: “A thriller that’s as generic as its title, The Whisper Man is a tremendous waste of talent in front of and behind the camera in service of an idiotic story that only grows more frustrating with every ludicrous, but predictable twist.” — Andrew Parker, Out of Time Reviews

The Vvaan: “Some films are bad. Some are terrible. And some are pure torture. The Vvaan falls neatly into that third category, in which I struggled to find a single redeeming feature, and failed spectacularly.” — Shubhra Gupta, The Indian Express

Tiny Fugitives: “The anger of the writing eclipses the humor and hamstrings the kids into being unfunny joke-deliverers with massive chips on their shoulders.” — Chris Joyce, Movies and Munchies

Practical Magic 2: “With a script that feels indifferent and a near-endless series of endings, I wanted this spell of boredom to be broken much sooner.” Aaron Neuwirth, We Live Entertainment

Japan – Day 14

On my last day in Japan, I ate a strudel based breakfast fit for a champion at the local konbini1. Next, I traveled by bullet train to Shinagawa and then made my way to the Narita Airport via JR train.

Riding the trains one last time, I began to think back on my trip. I compared my experience to the one I had 33 years ago and appreciated how special this place is to me. The temples and sacred sites, manmade and trinket-laden as they often were, still moved me in a deeply spiritual way. Something about the intention behind these places — the effort to create somewhere spiritual — was enough to trigger those feelings, as long as I gave myself the time and space to look for them.

I continued onto the airport and looked at souvenirs. I found myself able to clear my mind and enter a more peaceful state even while looking at new clothes or browsing at the Lego store. I loved the feeling I got as a lovely Japanese woman took care to hand me my receipt, looking me in the eyes and holding it carefully with two hands before placing it in mine. It’s a society built around taking care of one another and I don’t want to blow it out of proportion, but they’ve definitely got something worth emulating.

Eventually, it came time to clear security. I filled up my water bottle so I’d have enough water for the trip — I’ve always found the little cups of water the flight attendant provides insufficient and I didn’t plan on going thirsty this time. Security itself was so much less invasive than on trips to the States — another welcome relief and a reminder that international travel outside North America has its own advantages.

When I finally boarded, I found myself seated next to a nice couple from Calgary. I put my backpack in the overhead compartment. Before we took off, the fellow needed to get into his bag and suddenly I saw a waterfall pouring out of the overhead compartment.

A lot of water came pouring out. It was a literal waterfall on a plane.

I instantly knew what was happening. Sure enough, upon inspection of my bag, I confirmed that my water bottle had not been sealed properly and opened all over the bin and down on the floor. The two inches of water in my backpack began seeping out, creating an additional pool of water beneath my feet. The flight attendants brought some very tiny napkins which were basically useless, but I suppose — in the end — it’s not worth crying over spilt… water.

My chair wouldn’t recline and the space in front of my feet was soaked, and the flight home was long and painful. Getting into a meditative state isn’t as easy when your feet are wet and you’re uncomfortable, but it still helps.

I can’t wait to go back.

  1. Lawsons convenience store[↩]

Japan – Day 13

Dave and I skipped breakfast and walked about 40 minutes to the Kiyomizu-dera temple.

As we explored the area, we found ourselves surrounded by nature and following a path to the top of the mountain.

Dave discovered the head portion of a rhino beetle. The decomposers had gotten to it, and it was very smelly.

The colors of the reddish cedars and green ferns contrasted beautifully.

We found this “mound” at the top of the mountain that looked a little like a grave marker to me.

My electronic device translated the back side of it thusly:

Chronicle of Shayin
The Marquis established this site amidst the charming landscape of hills and waters. An elder, having partaken of refreshment here, recounted how the Marquis—along with the Duke of Chunfang—came to offer sacrifices and lodge at this spot. Seeking to cultivate the land and enrich the people, the Marquis developed the area to attract visitors from afar; the elder, too, found the place delightful. Moved by this benevolence, he recorded the story of the site.
—Written by Fujisawa of Nanyue, Eighth Month.
Ise, Nishiki, Yama, Yagami—a scene of poignant beauty.

Dave and I ate at Coco Curry for lunch — despite being a pretty common chain, it has really good food.

When I went to Kyoto in 1992, all the other students got their photo with “The Thinker”. I thought it wouldn’t be worth the film and so I never got the shot. This time, I got it.

Le Penseur (The Thinker) statue is outside of the Kyoto National Museum — this place has a lot of really old Korean-style bells. Some might say too many bells, not enough whistles — but it was ok. They didn’t allow photography inside, so I didn’t take any. You’ll just have to imagine all those really old bells. We met up with the rest of Dave’s family, and I took a second look at the museum.

I decided to walk back to the hotel. My phone plan was out of data, so I couldn’t rely on my mapping app to get me home, and I ended up walking twice as far as I needed to. Suffice it to say, I got my steps in today: ~25,000 of them.

We enjoyed curry for supper that evening (Just Dave, April, and me) at an Indian food restaurant near our hotel.

Tomorrow: last day in Japan.