论坛帮助 |
社区圈子 |
日历事件 |
2021-11-28, 19:39 | 只看该作者 #58 | |||
|
||||
正式会员
等级: 七袋长老
|
flagui.value = false; }; flagui.onClick = function() { zlagui.value = false; }; xinxizu = regWin.add("group", [230, 135, 415, 272], "undefined"); xinxixian = xinxizu.add("panel", [0, 0, 160, 118], "信息"); haveFN = xinxizu.add("checkbox", [11, 18, 81, 38], "文件名"); haveFN.value = AutoMarkXml.haveFN - 0; haveTM = xinxizu.add("checkbox", [11, 43, 81, 63], "日期"); haveTM.value = AutoMarkXml.haveTM - 0; havePT = xinxizu.add("checkbox", [11, 68, 81, 88], "路径"); havePT.value = AutoMarkXml.havePT - 0; bite = xinxizu.add("checkbox", [11, 92, 81, 112], "咬口"); bite.value = AutoMarkXml.bite - 0; littleSize = xinxizu.add("checkbox", [83, 18, 178, 38], "成品尺寸"); littleSize.value = AutoMarkXml.littleSize - 0; bigSize = xinxizu.add("checkbox", [83, 43, 178, 63], "拼版尺寸"); bigSize.value = AutoMarkXml.bigSize - 0; paperSize = xinxizu.add("checkbox", [83, 68, 178, 88], "角线尺寸"); paperSize.value = AutoMarkXml.paperSize - 0; paperSize1 = xinxizu.add("checkbox", [83, 92, 178, 112], "纸张尺寸"); paperSize1.value = AutoMarkXml.paperSize1 - 0; beizhuzu = regWin.add("group", [0, 224, 230, 260], "undefined"); otherInfo = beizhuzu.add("statictext", [21, 10, 91, 30], "备注:", { multiline: true }); oiValue = beizhuzu.add("edittext", [62, 3, 218, 23], AutoMarkXml.oiValue, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); CTPzu = regWin.add("group", [0, 254, 415, 450], "undefined"); CTPxian = CTPzu.add("panel", [12, 5, 390, 150], "CTP"); Yushexian = CTPzu.add("panel", [12, 160, 390, 360], "预设"); paperInfo = CTPzu.add("statictext", [23, 29, 93, 49], "纸张:", { multiline: true }); paperW = CTPzu.add("edittext", [60, 25, 110, 45], AutoMarkXml.paperW, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); X1 = CTPzu.add("statictext", [115, 29, 185, 49], "X", { multiline: true }); paperH = CTPzu.add("edittext", [130, 25, 180, 45], AutoMarkXml.paperH, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); paper3 = regWin.add("statictext", [195, 273, 238, 303], "咬口:"); paperB = CTPzu.add("edittext", [238, 25, 275, 45], AutoMarkXml.paperB, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); platoInfo = CTPzu.add("statictext", [22, 54, 92, 74], "版材:", { multiline: true }); platoW = CTPzu.add("edittext", [60, 50, 110, 70], AutoMarkXml.platoW, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); X2 = CTPzu.add("statictext", [115, 55, 185, 75], "X", { multiline: true }); platoH = CTPzu.add("edittext", [130, 50, 180, 70], AutoMarkXml.platoH, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); plate3 = CTPzu.add("statictext", [195, 50, 238, 70], "咬口:"); platoB = CTPzu.add("edittext", [238, 50, 275, 70], AutoMarkXml.platoB, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); cxdb = CTPzu.add("statictext", [283, 53, 353, 73], " 去边:", { multiline: true }); cxdbkuang = CTPzu.add("edittext", [336, 50, 376, 70], AutoMarkXml.cxdbkuang, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); autopage = regWin.add("checkbox", [27, 370, 122, 400], "自动页面"); autopage.value = AutoMarkXml.autopage - 0; ABtrans = regWin.add("checkbox", [130, 370, 225, 400], "版纸设定"); ABtrans.value = AutoMarkXml.ABtrans - 0; gird = regWin.add("checkbox", [230, 370, 325, 400], "辅助线"); gird.value = AutoMarkXml.gird - 0; onlyCTP = regWin.add("checkbox", [318, 370, 405, 400], "仅 CTP"); onlyCTP.value = AutoMarkXml.onlyCTP - 0; autopage.onClick = function() { if (autopage.value == true) { ABtrans.value = false; gird.value = false; onlyCTP.value = false; } }; ABtrans.onClick = gird.onClick = onlyCTP.onClick = function() { if (ABtrans.value == true || gird.value == true || onlyCTP.value == true) { autopage.value = false; } }; selectFile = regWin.add("button", [27, 345, 77, 365], "链接"); sfValue = regWin.add("edittext", [85, 345, 230, 365], AutoMarkXml.sfValue, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); selectFile.onClick = function() { var jxaa = File.openDialog("选择文件", "PDF:*.pdf,EPS:*.eps,AI:*.ai", false); if (jxaa != null) { sfValue.text = jxaa.fsName; } }; linkMove = regWin.add("statictext", [239, 350, 309, 367], "位移:", { multiline: true }); lmValue = regWin.add("edittext", [280, 345, 316, 365], AutoMarkXml.lmValue, { readonly: 0, noecho: 0, borderless: 0, multiline: 0, enterKeySignalsOnChange: 0 }); embed = regWin.add("checkbox", [330, 345, 400, 368], "嵌入"); embed.value = AutoMarkXml.embed - 0; zelanzu = regWin.add("group", [0, 0, 500, 550], "undefined"); chushi = zelanzu.add("button", [50, 440, 85, 475], "默认"); yushe1 = zelanzu.add("button", [95, 440,130, 475], "一"); yushe2 = zelanzu.add("button", [140, 440,175, 475], "二"); yushe3 = zelanzu.add("button", [185, 440,220, 475], "三"); yushe4 = zelanzu.add("button", [230, 440,265, 475], "四"); yushe5 = zelanzu.add("button", [275, 440,310,475], "五"); yuzhi = zelanzu.add("button", [320, 440, 355, 475], "保存"); szm = zelanzu.add("button", [20, 510, 120, 540], "帮助"); okBt = zelanzu.add("button", [175, 510, 275, 540], "确定"); cancleBt = zelanzu.add("button", [280, 510, 380, 540], "取消"); okBt.onClick = function() { function4(); regWin2.close(); if (gArgG === ys1 || gArgG2 === ys2 || gArgG3 === ys3 || gArgG4 === ys4 || gArgG5 === ys5) { gArgG = gArgG2= gArgG3= gArgG4= gArgG5; function7(); } else { function7(); } v = 2.83464566929134; linelength = lLValue.text * v; lw = lwValue.text * v; linespace = lSValue.text * v; outspace = oSValue.text * v; qubian = cxdbkuang.text * v; if (boolCx.value == true) { boolC = true; } else { boolC = false; } if (boolMx.value == true) { boolM = true; } else { boolM = false; } if (boolYx.value == true) { boolY = true; } else { boolY = false; } if (boolKx.value == true) { boolK = true; } else { boolK = false; } cspace = csValue.text * v; ptRe = prValue.text; od = rdValue.text * v; cw = cwValue.text * v; ch = chValue.text * v; level = clValue.text; Plate_width = platoW.text * v; Plate_heigth = platoH.text * v; Plate_bite = platoB.text * v; Paper_width = paperW.text * v; Paper_heigth = paperH.text * v; Paper_bite = paperB.text * v; if (CMYK.value == true) { colormodul = 0; } if (mingcheng.value == true) { colormodul = 1; } if (wu.value == true) { colormodul = 2; } if (buhanchuxue.value == true) { bleeded = false; bleeded2 = false; } if (quanbuchuxue.value == true) { bleeded = true; bleeded2 = true; } if (dabanchuxue.value == true) { bleeded = true; bleeded2 = false; } if (doubleLine.value == true) { shuangjiaoxian = true; } else { shuangjiaoxian = false; } if (JPLine.value == true) { rishicaiqie = true; } else { rishicaiqie = false; } for (var i = 0; i < textFonts.length; i += 1) { if (textFonts[i].family == fnValue.text && textFonts[i].style == "Regular" || textFonts[i].style == "常规体" || textFonts[i].style == "L" || textFonts[i].style == "R") { Textfontname = textFonts[i]; } } textfontsize = fsValue.text * v; regWin.close(); function6(); }; cancleBt.onClick = function() { regWin.close(); }; yuzhi.onClick = function() { function4(); regWin2.center(); regWin2.show(); }; szm.onClick = function ale() { alert("脚本源于网上搜集,版权归原作者所有!\ \ 默认设置:CTP版材:650x550MM,咬口:60MM。\ \ 还可以根据需求,保存五组常用数据。\ \ 将压缩包中的〖AI增强版角线.jsx〗脚本文件,\ 复制到Illustrator软件的《Presets》(中文版\ 是预设)—《zh-CN》—《脚本》文件夹中即可,\ 重启AI软件就可以在《文件》—《脚本》菜单下\ 看见〖AI增强版角线〗菜单了。\ \ CPC-WJL-CWD \ 2021年11月28日"); }; |
|||
2021-11-30, 10:30 | 只看该作者 #60 | ||
|
|||
正式会员
等级: 二袋长老
|
引用:
还有一种方法是不要定义控件的大小,让系统自动生成 |
||