AI オブジェクトの角度を計算

選択オブジェクトの角度をクリップボードにコピーします。

スクリプトエディタで開く

02

tell document 1 of application “Adobe Illustrator”
copy properties of selection to {width:a1, height:a2}
tell current application to set a3 to do shell script “ruby -e ‘puts Math.atan2(“ & quoted form of (a1 as Unicode text) & “, “ & quoted form of (a2 as Unicode text) & “)/3.141592*180′”
set a4 to 90 – a3
set the clipboard to a3 & “\r\n” & a4
end tell