__simon_
Community Beginner
__simon_
Community Beginner
Activity
‎Apr 03, 2009
09:43 AM
Not quiet enough, but it's a start.
"I want Illustrator to be exactly like FreeHand and anyone who disagrees with me is a moron." says the ex-Freehand user.
"Why did Macromedia drop all support for FreeHand and disband the development team years ago?" asks everyone else.
... View more
‎Mar 24, 2009
07:34 AM
1. Find gun.
2. Find bullet.
3. Insert result of 2 into result of 1.
4. Point result of 1 to forehead.
5. Pull trigger of result of 1.
6. Wait for result of 1+2+3+4+5 to take effect.
... View more
‎Mar 16, 2009
04:10 AM
I only know how to achieve this on a Mac using AppleScript. I believe you're on Windows?
... View more
‎Mar 14, 2009
08:04 AM
Yes.
... View more
‎Mar 14, 2009
08:01 AM
Yes.
Maybe you should RTFM before posting these 'I can't be bothered to read the documentation, so please do my thinking for me' type posts.
... View more
‎Dec 11, 2008
09:49 AM
I've been writing AppleScripts for Illustrator since version 8 and have never seen "magenta" referred to as "zoom".
Something is weird with your installation/setup. It might be a terminology conflict with another scripting addition. Try removing all but the standard OSAX from your ScriptingAdditions folder(s) and restarting.
If that doesn't work, try a clean install of AI. If that doesn't work try logging in as a new user. And if that doesn't work, I'm all out of ideas.
... View more
‎Nov 07, 2008
11:56 AM
The other thing I don't fully understand and haven't explored is that when an object has been rotated it gets a new tag called "BBAccumRotation".
If I rotate a text frame 45°, the value of the BBAccumRotation tag is 0.785398.
Anyone any idea what this evaluates too? There's nothing in the scripting docs.
... View more
‎Nov 07, 2008
11:08 AM
Yeah, and if the object has been skewed too, the values are different.
I wish there was just a range of properties for all transformation values that we could use instead. I think InDesign supports something like this.
... View more
‎Nov 07, 2008
02:08 AM
Hi Ben,
I posted a similar request on Apple's AppleScript Users Forum. I can't find the thread at the moment, but here's the code that others helped me to develop.
You'll need to download Satimage.osax for the maths functions from here: http://www.satimage.fr/software/downloads/Satimage331.dmg/
I'd be interested to see your code.
Simon
-- SCRIPT --
tell application "Adobe Illustrator"
set {theta_deg, hscale, vscale, skew} to my decodeMatrix(matrix of text frame 1 of document 1)
end tell
on decodeMatrix(mat) -- requires Satimage.osax
tell application "Adobe Illustrator"
set _a to mvalue_a of mat
set _b to mvalue_b of mat
set _c to mvalue_c of mat
set _d to mvalue_d of mat
end tell
set theta to atan2 {_c, _d}
set cos_theta to cos (theta)
set hscale to roundThis(_a / cos_theta, 2)
set vscale to roundThis(_d / cos_theta, 2)
set skew to roundThis(_c / cos_theta, 2)
set theta_deg to roundThis(theta / pi * 180, 2)
return {theta_deg, hscale, vscale, skew}
end decodeMatrix
on roundThis(n, numDecimals)
set x to 10 ^ numDecimals
tell (n * x) to return (it div 0.5 - it div 1) / x
end roundThis
-- END SCRIPT --
... View more