华印

标题: AI动作一键刀线色 [打印本页]

作者: cxz450450    时间: 2019-9-6 15:46
标题: AI动作一键刀线色
请问这个动作,能卖几个币?
大家工作中有没有用这操作?
没事瞎折腾。。。
链接:https://pan.baidu.com/s/1FfkNh5ptV-KseFXj46giQg
提取码:1nm9



7天有效。


作者: 001    时间: 2019-9-6 19:27
7天有效,同志们赶快!!!!!!!
作者: 印刷人    时间: 2019-9-6 22:22
只是个录像。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。

作者: xuhuiming    时间: 2019-9-7 09:39
这套动作唯一的价值就是怎么记录专色版创建动作的,谁知道


补充内容 (2019-9-7 10:20):
可以卖币 10币我买
作者: baruny    时间: 2019-9-7 12:39
我滴个去,居然是视频!
作者: Goprone    时间: 2019-9-9 11:38
标题与内容不合,把动作发出来吧
作者: dcy411075564    时间: 2019-9-9 15:22
楼主把动作贴出来给大家研究下呗
作者: coold大师    时间: 2019-9-9 16:21
我有设置刀线的脚本要不要也拿出来卖
作者: dcy411075564    时间: 2019-9-11 15:02
研究出来一个   不过有一点小瑕疵
作者: 792491914    时间: 2019-9-17 12:35
自己另存为jsx

#target 'illustrator'
#targetengine com.adobe.illustrator.demo.flashplayer//目标软件是ai
if ( app.documents.length > 0 && app.activeDocument.pathItems.length > 0 ){
var doc = app.activeDocument;//当前文档
var lw=0.2*2.834646; //刀线粗 0.15 mm
var docSpots = activeDocument.spots;
var isExist=false;
   for(var j=0;j < docSpots.length; j++){
        if (docSpots[j].name.toString() =="刀线"){
            spot1=docSpots[j];
            isExist=true;
            break
            }
        }
  if (!isExist){newCMYKColor = new CMYKColor();
newCMYKColor.cyan = 1;
newCMYKColor.magenta = 100;
newCMYKColor.yellow = 100;
newCMYKColor.black = 1;
// Create the new spot
var newSpot = app.activeDocument.spots.add();
newSpot.name = "刀线";
newSpot.color = newCMYKColor;
newSpot.colorType = ColorModel.SPOT
var newSpotColor = new SpotColor();
newSpotColor.spot = newSpot;
// Use the spot color to set the fill color
}
else{
    var newSpotColor = new SpotColor();
newSpotColor.spot = spot1;
}
//以上是建立DC   
//建立图层
var isExist=false;
for(i=0;i<doc.layers.length;i++){
    if(doc.layers[i].name=='刀线图层'){
      cutlayer=doc.layers[i];
      isExist=true;
      break}
  }//设置图层名称
if(!isExist){
cutlayer=doc.layers.add(); //新建图层
cutlayer.name = '刀线图层';
}
g = cutlayer.groupItems.add();
var frontPath = app.activeDocument.selection;
for(var i=0;i<frontPath.length;i++){
   apply_G_DC(frontPath[i]);
   frontPath[i].move(g,ElementPlacement.PLACEATEND)
}

function apply_G_DC(the_Obj){   
         if (the_Obj.constructor.name=="GroupItem"&&the_Obj.clipped==false){
         try {
     var N_sub_obj = the_Obj.pageItems.length;
     for (var i = 0; i < N_sub_obj; i += 1) {
      apply_G_DC(the_Obj.pageItems[i]);
     }
    } catch(error) {
                    return;
                    }
                   }
        else  if (the_Obj.constructor.name=="CompoundPathItem"){
         try {
     var N_sub_obj1 = the_Obj.pathItems.length;
     for (var i = 0; i < N_sub_obj1; i += 1) {
      apply_G_DC(the_Obj.pathItems[i]);
     }
    } catch(error) {
                    return;
                    }
                   }
               
               apply_S_DC(the_Obj);
               return;
            }
function apply_S_DC(the_Obj){
    the_Obj.stroked = true;
the_Obj.filled = false;
the_Obj.strokeColor = newSpotColor;
the_Obj.strokeWidth= lw;
the_Obj.strokeOverprint = true;
}
}

作者: barry    时间: 2019-10-23 07:17
我想买这样的动作,楼主可不可以留下QQ号或发消息给我




欢迎光临 华印 (https://www.52cnp.com/) Powered by Discuz! X3.4