How to get the angle of an object ?
How to get the angle of an object ?

How to get the angle of an object ?

If you are dealing with most types of art , you can check to see if the automatically-added "BBAccumRotation" tag is at work. This 'tag' is a scripting object that's not accessible from the UI, and likely serves some sort of Illustrator purpose. It is automatically added to art items when the rotation tools are used within AI to rotate them.
#target illustrator
function test(){
var doc = app.activeDocument;
var sel = doc.selection[0];
if(sel.tags.length > 0 && sel.tags[0].name == "BBAccumRotation"){
alert(sel.tags[0].value); //in radians
}
};
test();
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.