I have a script which makes a simple shape* for me:
var docRef = documents.add();
var piRef = activeDocument.pathItems;
{
var pathRef = piRef.add();
pathRef.setEntirePath( new Array(
new Array(475,543.30078125),
new Array(450,500),
new Array(475,456.69873046875),
new Array(525,456.69873046875),
new Array(550,500),
new Array(525,543.30078125),
new Array(475,543.30078125) ) ) ;
}
However, the shape(s) which I create are limited to straight paths, how could I change this to be creating paths with curved edges?
I'm pretty new and inexperienced to Illustrator scripting, I'm sure there's a better way for me to be making this path in the first place.
I use this script from Wolff in order to extract my path coordinates (after creating the path in Illustrator), I assume I'd have to modify that as well in order to have it export round paths.
*The shape being a hexagon is irrelevant, the idea is to be able to create arbitrary shapes.