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

How to pull through the script the value of the steering angle of the gradient fill in the selected object?

5df8fc5cc10aa525556259.png
April 3rd 20 at 18:25
1 answer
April 3rd 20 at 18:27
Solution
var angle = app.activeDocument.selection[0].fillColor.angle;
$.writeln(angle);

The Adobe is sufficiently detailed scripting documentation:
https://www.adobe.com/devnet/illustrator/scripting.html

Find more questions by tags JavaScriptAdobe Illustrator