AI动作一键刀线色
请问这个动作,能卖几个币?大家工作中有没有用这操作?
没事瞎折腾。。。
链接:https://pan.baidu.com/s/1FfkNh5ptV-KseFXj46giQg
提取码:1nm9
7天有效。
7天有效,同志们赶快!!!!!!! 只是个录像。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
这套动作唯一的价值就是怎么记录专色版创建动作的,谁知道
补充内容 (2019-9-7 10:20):
可以卖币 10币我买 我滴个去,居然是视频! 标题与内容不合,把动作发出来吧 楼主把动作贴出来给大家研究下呗 我有设置刀线的脚本要不要也拿出来卖 研究出来一个 不过有一点小瑕疵 自己另存为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.name.toString() =="刀线"){
spot1=docSpots;
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.name=='刀线图层'){
cutlayer=doc.layers;
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);
frontPath.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);
}
} catch(error) {
return;
}
}
elseif (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);
}
} 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;
}
}
页:
[1]
2