I'm doing some isometric drawing in Illustrator, and moving my objects around on 0°, 30° and 60° constrained angles. I keep having to go to preferences (Control + K) to change the constrain angle depending on how and where I'm moving something around. Is there a quicker way to handle this?
If you're looking for something internal, why not use Smart Guides and adjust the Preferences to show Construction Guides at 30° angles? This will give you a "snap" at the 30° angles. While not the same as constraining, I often find the smart Guides snapping sufficient.
The only thing perhaps easier than adjusting preferences is using the Protractor Panel which is part of Astute Graphics VectorScribe plug in. However, this is not a free solution. VectorScribe is a paid plug in. I mention it because this is a solution. VectorScribe is a collection of many features. The most simple of all these features is the Protractor Panel. I don't know that I could recommend VectorScribe for the Protractor Panel alone. The cost of VectorScribe may not be worth it for only that feature. However, if you look at all the features which are part of VectorScribe the cost is easily justifiable.
One of the functions of the Protractor Panel is to give you essentially a shortcut to the constrain angles via buttons.
You can click the angle under the text "Constrain Angle" to get a pop up enabling you to enter any angle. Clicking any of these buttons or entering a value in the pop up simply sets Illustrator's constrain angle to that degree.
Well you could use this jsx script:
var Prefs = app.preferences; var angle = Prefs.getRealPreference('constrain/angle'); angle += 30.0; if (angle >70) angle = 0; Prefs.setRealPreference('constrain/angle', angle);
You can tie this into a action, and keyboard shortcut from there. But then illustrator will forget this next time you load (yeah adobe consistently ignores the feature request of keyboard shortcuts for scripts).
how do i use the script?
Put it in a text file with a .jsx extension. Next put this file in your presets scripting folder. In may version is located in under the installation directory:
but varies a bit with version and os (refer to this). Now the script should be visible in file -> scripts -> yourfilename. You can now add it to an action with insert menu item. Then give the action a hokey.
Without doing a plugin and cursing myself with all extra overhead (yeah it would certainly be possible but then a 15 minutes interesting job becomes a 1 month chore and then you couldn't afford the solution). Unless somebody already made a plugin to satisfy your need.