Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: hi i want to create a shape with multiple point

$
0
0

@Yogendra – there is no Polygon with only two path points.

Two path points make a GraphicLine object.

 

So you could construct it this way:

 

var pathPoints = [["0","10"],["100","110"]]; 
var gL1 = app.documents[0].graphicLines.add({      strokeColor:"Magenta",     strokeWeight:10     //… add some more properties      }); 
gL1.paths[0].entirePath = pathPoints;

 

Uwe


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>