Wednesday, November 21, 2007

New Script "Sharpen Edges"

Please welcome my new script on the block: "Sharpen Corners"
This script removes all control handles from any selected points.
This has the effect of "straightening" all the paths in an object.
This script doesn't actually unround corners, (since you can already do that with the "convert to rectangle" filter.)
I originally wrote it to align 40 points with randomized control handles, but after messing with it a bit, I discovered you can make quick and simple gears by running this script on a star with rounded corners. If you can think of any other cool uses, please post them here in the comments section.
In other news, Nathaniel Kelso is showing my lazy butt up by putting together a sample flash interface for my align text scripts. This is insanely cool, now we can make full featured floating palates as js interfaces. I will play with this more in the coming months. (Although unfortunately, the swf interface works only with CS3. You can check out and download the files from Nathaniels scripts page on the links to the left.
Also in our email dialogue I've figured out how to access masked objects. Illustrator treats them like grouped objects, so you can use the following format to grab the masking object, because it will always be on the top of the stack: (assuming you have only the masked item selected)
Anyway, happy thanksgiving, and happy coding...


Gary Spedding, Ph.D. said...

Just found you today after your IT Forum posting. I tried Text Tweak and found some interesting effects there but I do not get Sharpen Edges. I tried with a rounded corner star but I think I need a bit more instruction on how to use this script. Any help?

Thanks for making these scripts though. I'll be sure to check out the others.


John said...

Hello Gary,
I can't be sure without looking at the file, but my guess is that you may have rounded the star using 'effects>stylize>round corners' instead of 'filters>stylize>round corners.' One quick way to tell is to use the (cntrl-y) keyboard combo to view outlines. If the lines are still sharp, then you'll need to expand the appearance from the object menu before sharpen edges will work.

The point of the script is just to remove control handles from an object, so a circle becomes a diamond, a rounded rectangle becomes a rectangular octagon, and a rounded star becomes a gear-like thing.

I hope this helps. If this doesn't work, or if you have any more questions, I'll be happy to help. Just pop me an email. My address can be found at the top of all my scripts.