Copy link to clipboard
Copied
Hi,
does someone know how to create a triangle with (x1,y1)(x2,y2) and (x3,y3) positions?
For a rectangle i found this:
app.activeDocument.rectangles.add({geometricBounds:[0, 144 , 214, 500] } )
But this is not working for a triangle?
Please Help
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Or:
create a rectangle and convert it to a triangle with:
myRectangle.convertShape(ConvertShapeOptions.CONVERT_TO_TRIANGLE);
Uwe