Script which was working in Adobe 17.1.0 is not working in Adobe 19.1.0
hi chaps,
i have script x,y coordinates , width height of particular objects in whole artboard.
this script working fine in machines got adobe 17.1.0 interestingly generates multiple times on elements generated , displaying dimensions on , on again.
do need modify script , make specific changes adobe 19.1.0 please suggest.
function getleftcoord(value1,layer) { var topleftposdoc= new array(0,0); var bottomleftposart = new array(0,0); var rectangleheight = 0; var recanglewidth = 0; (var iselecteditems=0; iselecteditems<doc.selection.length; iselecteditems++) { // skipping layer if layer done. if (1 == full_script) { if (layer != doc.selection[iselecteditems].layer.name ) break ; } topleftposdoc= doc.selection[iselecteditems].position; // bottom left coordinates bottomleftposart= doc.convertcoordinate (topleftposdoc, coordinatesystem.documentcoordinatesystem, coordinatesystem.artboardcoordinatesystem); rectangleheight = doc.selection[iselecteditems].height ; bottomleftposart[1] = math.abs(bottomleftposart[1] - rectangleheight); recanglewidth = doc.selection[iselecteditems].width ; if ('left' == value1) { speclabelwidthheight(concatenate(bottomleftposart[0],bottomleftposart[1]),topleftposdoc[0]+10, (topleftposdoc[1]- rectangleheight)+15); drawleftbottomtriangle(topleftposdoc, rectangleheight); } else if ('center'== value1) { speclabelwidthheight(concatenate(bottomleftposart[0],bottomleftposart[1]),(topleftposdoc[0] -recanglewidth/2), (topleftposdoc[1]- rectangleheight/2)); drawtopcentertriangle(topleftposdoc, recanglewidth); } else { //never enter here } } dlg.close (); }
More discussions in Illustrator
adobe
Comments
Post a Comment