文档库

最新最全的文档下载
当前位置:文档库 > 脚本在找茬中的任务

脚本在找茬中的任务

#target photoshop

app.bringToFront();

res ="dialog { \

text:'找茬数据专用',\

group: Group{orientation: 'column',alignChildren:'left',\

folderO:Group{ orientation: 'row', \

b: Button {text:'待处理文件夹', properties:{name:'open'} ,helpTip:'选择您需要处理的文件所在的文件夹'},\

s: EditText { text:'', preferredSize: [360, 20] },\

},\

folderS:Group{ orientation: 'row', \

b: Button {text:'输出图像至', properties:{name:'save'} ,helpTip:'选择您处理好的文件要保存至的文件夹'},\

s: EditText { text:'', preferredSize: [300, 20] },\

},\

meng:Group{ orientation: 'row', \

c:Checkbox { text:' 启用黑色蒙版'} ,\

s: StaticText { text:'| 蒙版收缩量(单位px):' }, \

e: EditText { text:'2', preferredSize: [20, 18]},\

},\

Quality: Group { orientation: 'row', \

c:Checkbox { text:' 仅查询坐标,不生成图片'} ,\

s: StaticText { text:'| 生成JPG的压缩质量(0-100):' }, \

e: EditText { text:'70', preferredSize: [30, 18]},\

}, \

gg: Group{orientation: 'column',alignChildren:'left' },\

timeline:Progressbar{bounds:[0,0,400,10] , minvalue:0,maxvalue:100}\

aa: Button { text:'START'}, \

脚本在找茬中的任务

}\

}";

var mengPoint="";

var mengColor =new SolidColor;

mengColor.rgb.red =0;

mengColor.rgb.green =0;

mengColor.rgb.blue =0;

win = new Window (res);

win.myText = win.group.gg.add("edittext",[0,0,500,300],'~~~',{multiline:true, readonly:false});

function lyFoot() { // 选中最下层

var id553 = charIDToTypeID( "slct" );

var desc88 = new ActionDescriptor();

var id554 = charIDToTypeID( "null" );

var ref95 = new ActionReference();

var id555 = charIDToTypeID( "Lyr " );

var id556 = charIDToTypeID( "Ordn" );

var id557 = charIDToTypeID( "Back" );

ref95.putEnumerated( id555, id556, id557 );

desc88.putReference( id554, ref95 );

var id558 = charIDToTypeID( "MkVs" );