illustrator插件-拼版功能开发-印前角线-js脚本开发-ai插件( 五 )

< arrayVal.length;i += 1) {var tPathVal = g1.pathItems.add();tPathVal.setEntirePath(arrayVal [i]);tPathVal.filled = false;tPathVal.stroked = true;tPathVal.strokeColor = regColor;tPathVal.strokeWidth = 1;tPathVal.strokeDashes = [5, 1, 1];tPathVal.guides = true;tPathVal.locked = true;}}if (autopage.value == true) {Ab = doc.artboards[doc.artboards.getActiveArtboardIndex()];Ab.artboardRect = g.geometricBounds;}if (ABtrans.value == true && sfValue.text != "") {linkfile = g.placedItems.add();linkfile.file = new File(sfValue.text);var xVal = ((refB[2] + refB[0]) / 2) - (linkfile.width / 2);var yVal = refB[3] + linkfile.height + ((lmValue.text - 0) * v);linkfile.position = [xVal, yVal];if (embed.value == true) {linkfile.embed()}}}function function3 (modeVal, gArgG, fileReadVal) {var NewFileVal = new File(gArgG);NewFileVal.lineFeed = "Windows";if (modeVal == "read"){NewFileVal.open("r");var fileReadVal = NewFileVal.read();return fileReadVal;}if (modeVal == "write") {NewFileVal.open("w", "TEXT", "????");NewFileVal.write(fileReadVal);NewFileVal.close();}}function function8 () {NewFileVal = new File(gArgG);if (NewFileVal.exists == true) {AutoMarkinfo = function3 ("read", filePath, filename);AutoMarkXml = new XML(AutoMarkinfo);}}function function2 () {NewFileVal = new File(gArgG);AutoMarkXml = new XML("");AutoMarkXml.lLValue = 5;AutoMarkXml.lwValue = 0.1;AutoMarkXml.lSValue = 3;AutoMarkXml.oSValue = 3;AutoMarkXml.doubleLine = 1;AutoMarkXml.JPLine = 1;AutoMarkXml.buhanchuxue = 0;AutoMarkXml.quanbuchuxue = 1;AutoMarkXml.dabanchuxue = 0;AutoMarkXml.CMYK = 0;AutoMarkXml.mingcheng = 1;AutoMarkXml.wu = 0;AutoMarkXml.colorLable = 1;AutoMarkXml.boolCx = 1;AutoMarkXml.boolMx = 1;AutoMarkXml.boolYx = 1;AutoMarkXml.boolKx = 1;AutoMarkXml.prValue = "";AutoMarkXml.haveFN = 1;AutoMarkXml.haveTM = 1;AutoMarkXml.havePT = 1;AutoMarkXml.littleSize = 1;AutoMarkXml.bigSize = 1;AutoMarkXml.paperSize = 1;AutoMarkXml.paperSize1 = 1;AutoMarkXml.bite = 1;AutoMarkXml.oiValue = "溪边那浣衣少女是谁?";AutoMarkXml.paperW = 400;AutoMarkXml.paperH = 300;AutoMarkXml.paperB = 20;AutoMarkXml.platoW = 600;AutoMarkXml.platoH = 400;AutoMarkXml.platoB = 60;AutoMarkXml.cxdbkuang = 0;AutoMarkXml.autopage = 0;AutoMarkXml.ABtrans = 1;AutoMarkXml.gird = 1;AutoMarkXml.onlyCTP = 1;AutoMarkXml.sfValue = "";AutoMarkXml.lmValue = 15;AutoMarkXml.embed = 0;AutoMarkXml.fnValue = "微软雅黑";AutoMarkXml.fsValue = 4;AutoMarkXml.chValue = 5;AutoMarkXml.cwValue = 5;AutoMarkXml.rdValue = 3;AutoMarkXml.csValue = 0;AutoMarkXml.clValue = "100,75,50,25";Contents = AutoMarkXml;function3 ("write", gArgG, Contents);}function function7 () {AutoMarkXml.lLValue = lLValue.text;AutoMarkXml.lwValue = lwValue.text;AutoMarkXml.lSValue = lSValue.text;AutoMarkXml.oSValue = oSValue.text;AutoMarkXml.doubleLine = doubleLine.value - 0;AutoMarkXml.JPLine = JPLine.value - 0;AutoMarkXml.buhanchuxue = buhanchuxue.value - 0;AutoMarkXml.quanbuchuxue = quanbuchuxue.value - 0;AutoMarkXml.dabanchuxue = dabanchuxue.value - 0;AutoMarkXml.CMYK = CMYK.value - 0;AutoMarkXml.mingcheng = mingcheng.value - 0;AutoMarkXml.wu = wu.value - 0;AutoMarkXml.colorLable = colorLable.value - 0;AutoMarkXml.boolCx = boolCx.value - 0;AutoMarkXml.boolMx = boolMx.value - 0;AutoMarkXml.boolYx = boolYx.value - 0;AutoMarkXml.boolKx = boolKx.value - 0;AutoMarkXml.prValue = prValue.text;AutoMarkXml.haveFN = haveFN.value - 0;AutoMarkXml.haveTM = haveTM.value - 0;AutoMarkXml.havePT = havePT.value - 0;AutoMarkXml.littleSize = littleSize.value - 0;AutoMarkXml.bigSize = bigSize.value - 0;AutoMarkXml.paperSize = paperSize.value - 0;AutoMarkXml.paperSize1 = paperSize1.value - 0;AutoMarkXml.bite = bite.value - 0;AutoMarkXml.oiValue = oiValue.text;AutoMarkXml.paperW = paperW.text - 0;AutoMarkXml.paperH = paperH.text - 0;AutoMarkXml.paperB = paperB.text - 0;AutoMarkXml.platoW = platoW.text - 0;AutoMarkXml.platoH = platoH.text - 0;AutoMarkXml.platoB = platoB.text - 0;AutoMarkXml.cxdbkuang = cxdbkuang.text - 0;AutoMarkXml.autopage = autopage.value - 0;AutoMarkXml.ABtrans = ABtrans.value - 0;AutoMarkXml.gird = gird.value - 0;AutoMarkXml.onlyCTP = onlyCTP.value - 0;AutoMarkXml.sfValue = sfValue.text;AutoMarkXml.lmValue = lmValue.text;AutoMarkXml.embed = embed.value - 0;AutoMarkXml.fnValue = fnValue.text;AutoMarkXml.fsValue = fsValue.text;AutoMarkXml.chValue = chValue.text;AutoMarkXml.cwValue = cwValue.text;AutoMarkXml.rdValue = rdValue.text;AutoMarkXml.csValue = csValue.text;AutoMarkXml.clValue = clValue.text;Contents = AutoMarkXml;function3 ("write", gArgG, Contents);}function1 ();2.作者答疑


推荐阅读