Hello,
I'm new to Illustrator scripting, trying to do this in JavaScript.
I'd like to retrieve the "width" property for each anchor point in a path.
When I use the Width Tool, I can change the width for each anchor point along a path. That's easy. Now what I'd like to do is (in a script) loop through each point in a path shape, retrieve the XY coords for the point, but in addition- retrieve the stroke width for each anchor point.
I am assuming this is possible, because when I hover the Width Tool over an anchor point, I get a pop-up that shows me- very clearly, what the stroke width is at that point. It shows Side 1, Side 2, and Width.
Ultimately I am trying to export a text file. The text file format would be something like this:
Path_01 : X , Y , width
pt_1 : 118 , -116 , 1
pt_2 : 664 , -377 , 36
pt_3 : 528 , -585 , 1
Should be simple, and any help greatly appreciated!
Thanks