摘要:
//激活Photoshop,设置为活动窗口 app.bringToFront();var PRESOLUTION=72; var startRulerUnits=app.preferences.rulerUnits; var startTypeUnits=app.preferences.typeUnits; app.preferences.rulerUnits = Units.PIXELS; app.preferences.typeUnits = TypeUnits.PIXELS;var dialogue="dialog{\ text:'自动切图V0.1',\ gro 阅读全文
posted @ 2013-05-25 11:35
火腿骑士
阅读(1106)
评论(0)
推荐(0)
摘要:
listbox的一个控件使用范例//访问Photoshop,并把应用程序放置顶层 #target photoshop app.bringToFront();var dlg = new Window('dialog', 'Alert Box Builder', [100,100,480,245]); // create list box with two titled columns var list = dlg.add ('ListBox', [0, 0, 150, 75], 'asd', {numberOfColumns: 2, 阅读全文
posted @ 2013-05-25 11:32
火腿骑士
阅读(149)
评论(0)
推荐(0)
摘要:
提交任务photoshop的脚本端//访问Photoshop,并把应用程序放置顶层 #target photoshop app.bringToFront(); //设置场景像素 app.preferences.rulerUnits = Units.PIXELS; app.preferences.typeUnits = TypeUnits.PIXELS;if (app.documents.length != 0) { //放缩图大小 不知道为什么不起作用 BUG? app.activeDocument.resizeImage =( 20 , 20 ,72 , ResampleMethod.B.. 阅读全文
posted @ 2013-05-25 11:31
火腿骑士
阅读(252)
评论(0)
推荐(0)
摘要:
/*<javascriptresource> <name>PSD TO HTML</name> <about>v1.0--https://github.com/wanxianjia/PSD2HTML</about> <menu>help</menu> <enableinfo>true</enableinfo> </javascriptresource>*/// Settings#target photoshopapp.displayDialogs = DialogModes. 阅读全文
posted @ 2013-05-25 11:14
火腿骑士
阅读(306)
评论(0)
推荐(0)
浙公网安备 33010602011771号