随笔分类 -  Photoshop Script

摘要://访问Photoshop,并把应用程序放置顶层#target photoshopapp.bringToFront();//设置场景像素app.preferences.rulerUnits = Units.PIXELS;app.preferences.typeUnits = TypeUnits.PIXELS;if (app.documents.length != 0){ //放缩图大小 不知道为什么不起作用 BUG? app.activeDocument.resizeImage =( 20 , 20 ,72 , ResampleMethod.BICUBICSHARPER) ; //获取当前时间 阅读全文
posted @ 2011-11-27 15:40 softimagewht 阅读(578) 评论(0) 推荐(0)
摘要://访问Photoshop,并把应用程序放置顶层#target photoshopapp.bringToFront();var dlg = new Window('dialog', 'Alert Box Builder', [100,100,480,245]);// create list box with two titled columnsvar list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd',{numberOfColumns: 2, showHeaders: true,co 阅读全文
posted @ 2011-11-27 15:20 softimagewht 阅读(340) 评论(0) 推荐(0)
摘要:function shui(){ //水印处理函数if (!win.group.shuiSet.other.open.e.text) {alert("您没有选择水印文件");}else{var shuiFlie = File(win.group.shuiSet.other.open.e.text);docShui= open(shuiFlie);docShui.changeMode(ChangeMode.RGB);if (docShui.layers.length>1) docShui.mergeVisibleLayers(); //合并可见层var shuiLaye 阅读全文
posted @ 2011-06-02 08:10 softimagewht 阅读(1342) 评论(0) 推荐(0)