Example
The following example traverses all the contours of the selected shape and shows the value of
the
property of each contour in the Output panel:
orientation
var elt = fl.getDocumentDOM().selection[0];
elt.beginEdit();
var contourArray = elt.contours;
var contourCount = 0;
for (i=0;
i<contourArray.length;
var contour = contourArray[i];
fl.trace("Next Contour, orientation:" + contour.orientation);
contourCount++;
}
elt.endEdit();
60
Objects
i++) {