A
A
Alexander Lysenko2019-12-17 19:04:31
JavaScript
Alexander Lysenko, 2019-12-17 19:04:31

How to get the rotation angle value of a gradient in Adobe Illustrator in a script?

How can I extract the value of the rotation angle of the gradient fill in the selected object through the script?
5df8fc5cc10aa525556259.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RAX7, 2019-12-17
@AlexanderZe

var angle = app.activeDocument.selection[0].fillColor.angle;
$.writeln(angle);

Adobe has fairly detailed scripting documentation:
https://www.adobe.com/devnet/illustrator/scripting.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question