300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > Photoshop插件-完美肌肤-脚本开发-PS插件

Photoshop插件-完美肌肤-脚本开发-PS插件

时间:2019-07-26 03:42:42

相关推荐

Photoshop插件-完美肌肤-脚本开发-PS插件

文章目录

1.插件界面2.关键代码-完美肌肤3.作者答疑

PS是一款栅格图像编辑软件,模块众多。提供了脚本,动态连接库等多种扩展机制,本文演示如何通过脚本实现完美肌肤相关功能,展示从互联网收集而来的一个小插件,供大家学习交流,请勿用于商业用途。

1.插件界面

本文界面是一系列功能的一部分,将逐步展示,但是功能界面是共同的,如下图所示:

2.关键代码-完美肌肤

大家可通过源代码阅读,来掌握相关技巧,源代码如下:

cTID = function (s) {return app.charIDToTypeID(s);};sTID = function (s) {return app.stringIDToTypeID(s);};////==================== Perfect Skin Pro ==============//$._ext_001 = {run: function PerfectSkinPro() {// Makefunction step1(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(cTID('Lyr '));desc1.putReference(cTID('null'), ref1);executeAction(cTID('Mk '), desc1, dialogMode);};// Merge Visiblefunction step2(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putBoolean(cTID('Dplc'), true);executeAction(sTID('mergeVisible'), desc1, dialogMode);};// Setfunction step3(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Blur");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Makefunction step4(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(cTID('Lyr '));desc1.putReference(cTID('null'), ref1);executeAction(cTID('Mk '), desc1, dialogMode);};// Merge Visiblefunction step5(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putBoolean(cTID('Dplc'), true);executeAction(sTID('mergeVisible'), desc1, dialogMode);};// Setfunction step6(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Blur II");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Makefunction step7(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(cTID('Lyr '));desc1.putReference(cTID('null'), ref1);executeAction(cTID('Mk '), desc1, dialogMode);};// Merge Visiblefunction step8(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putBoolean(cTID('Dplc'), true);executeAction(sTID('mergeVisible'), desc1, dialogMode);};// Setfunction step9(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Details 10px");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Makefunction step10(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(cTID('Lyr '));desc1.putReference(cTID('null'), ref1);executeAction(cTID('Mk '), desc1, dialogMode);};// Merge Visiblefunction step11(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putBoolean(cTID('Dplc'), true);executeAction(sTID('mergeVisible'), desc1, dialogMode);};// Setfunction step12(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Details 1px");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step13(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Convert to Smart Objectfunction step14(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);executeAction(sTID('newPlacedLayer'), undefined, dialogMode);};// Gaussian Blurfunction step15(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 8);executeAction(sTID('gaussianBlur'), desc1, dialogMode);};// Surface Blurfunction step16(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 35);desc1.putInteger(cTID('Thsh'), 35);executeAction(sTID('surfaceBlur'), desc1, dialogMode);};// Setfunction step17(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('Lghn'));desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step18(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur II");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Convert to Smart Objectfunction step19(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);executeAction(sTID('newPlacedLayer'), undefined, dialogMode);};// Gaussian Blurfunction step20(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 8);executeAction(sTID('gaussianBlur'), desc1, dialogMode);};// Surface Blurfunction step21(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 35);desc1.putInteger(cTID('Thsh'), 35);executeAction(sTID('surfaceBlur'), desc1, dialogMode);};// Selectfunction step22(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Setfunction step23(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(cTID('Chnl'), cTID('Chnl'), cTID('Gry '));desc3.putReference(cTID('Chnl'), ref2);desc3.putInteger(cTID('SrcB'), 0);desc3.putInteger(cTID('Srcl'), 0);desc3.putInteger(cTID('SrcW'), 255);desc3.putInteger(cTID('Srcm'), 255);desc3.putInteger(cTID('DstB'), 0);desc3.putInteger(cTID('Dstl'), 125);desc3.putInteger(cTID('DstW'), 125);desc3.putInteger(cTID('Dstt'), 255);list1.putObject(cTID('Blnd'), desc3);desc2.putList(cTID('Blnd'), list1);var desc4 = new ActionDescriptor();desc4.putUnitDouble(cTID('Scl '), cTID('#Prc'), 416.666666666667);desc2.putObject(cTID('Lefx'), cTID('Lefx'), desc4);desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step24(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur II");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Setfunction step25(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('Mltp'));desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Setfunction step26(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();var list1 = new ActionList();var desc3 = new ActionDescriptor();var ref2 = new ActionReference();ref2.putEnumerated(cTID('Chnl'), cTID('Chnl'), cTID('Gry '));desc3.putReference(cTID('Chnl'), ref2);desc3.putInteger(cTID('SrcB'), 0);desc3.putInteger(cTID('Srcl'), 0);desc3.putInteger(cTID('SrcW'), 255);desc3.putInteger(cTID('Srcm'), 255);desc3.putInteger(cTID('DstB'), 0);desc3.putInteger(cTID('Dstl'), 125);desc3.putInteger(cTID('DstW'), 125);desc3.putInteger(cTID('Dstt'), 255);list1.putObject(cTID('Blnd'), desc3);desc2.putList(cTID('Blnd'), list1);var desc4 = new ActionDescriptor();desc4.putUnitDouble(cTID('Scl '), cTID('#Prc'), 416.666666666667);desc2.putObject(cTID('Lefx'), cTID('Lefx'), desc4);desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Setfunction step27(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('Drkn'));desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Setfunction step28(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(cTID('Opct'), cTID('#Prc'), 60);desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step29(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur II");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Selectfunction step30(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Blur");desc1.putReference(cTID('null'), ref1);desc1.putEnumerated(sTID("selectionModifier"), sTID("selectionModifierType"), sTID("addToSelectionContinuous"));desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Merge Layersfunction step31(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();executeAction(sTID('mergeLayersNew'), desc1, dialogMode);};// Setfunction step32(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Cleansed Skin");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step33(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Details 10px");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Convert to Smart Objectfunction step34(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);executeAction(sTID('newPlacedLayer'), undefined, dialogMode);};// High Passfunction step35(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 10);executeAction(sTID('highPass'), desc1, dialogMode);};// Setfunction step36(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('SftL'));desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Setfunction step37(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(cTID('Opct'), cTID('#Prc'), 50);desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step38(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Details 1px");desc1.putReference(cTID('null'), ref1);desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Convert to Smart Objectfunction step39(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);executeAction(sTID('newPlacedLayer'), undefined, dialogMode);};// High Passfunction step40(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putUnitDouble(cTID('Rds '), cTID('#Pxl'), 1);executeAction(sTID('highPass'), desc1, dialogMode);};// Setfunction step41(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putEnumerated(cTID('Md '), cTID('BlnM'), sTID("vividLight"));desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Selectfunction step42(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putName(cTID('Lyr '), "Cleansed Skin");desc1.putReference(cTID('null'), ref1);desc1.putEnumerated(sTID("selectionModifier"), sTID("selectionModifierType"), sTID("addToSelectionContinuous"));desc1.putBoolean(cTID('MkVs'), false);executeAction(cTID('slct'), desc1, dialogMode);};// Makefunction step43(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putClass(sTID("layerSection"));desc1.putReference(cTID('null'), ref1);var ref2 = new ActionReference();ref2.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('From'), ref2);executeAction(cTID('Mk '), desc1, dialogMode);};// Setfunction step44(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putEnumerated(cTID('Lyr '), cTID('Ordn'), cTID('Trgt'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putString(cTID('Nm '), "Perfect Skin");desc1.putObject(cTID('T '), cTID('Lyr '), desc2);executeAction(cTID('setd'), desc1, dialogMode);};// Makefunction step45(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putClass(cTID('Nw '), cTID('Chnl'));var ref1 = new ActionReference();ref1.putEnumerated(cTID('Chnl'), cTID('Chnl'), cTID('Msk '));desc1.putReference(cTID('At '), ref1);desc1.putEnumerated(cTID('Usng'), cTID('UsrM'), cTID('RvlA'));executeAction(cTID('Mk '), desc1, dialogMode);};// Setfunction step46(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putProperty(cTID('Clr '), cTID('FrgC'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(cTID('H '), cTID('#Ang'), 0);desc2.putDouble(cTID('Strt'), 0);desc2.putDouble(cTID('Brgh'), 100);desc1.putObject(cTID('T '), cTID('HSBC'), desc2);desc1.putString(cTID('Srce'), "photoshopPicker");executeAction(cTID('setd'), desc1, dialogMode);};// Setfunction step47(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();var ref1 = new ActionReference();ref1.putProperty(cTID('Clr '), cTID('BckC'));desc1.putReference(cTID('null'), ref1);var desc2 = new ActionDescriptor();desc2.putUnitDouble(cTID('H '), cTID('#Ang'), 0);desc2.putDouble(cTID('Strt'), 0);desc2.putDouble(cTID('Brgh'), 0);desc1.putObject(cTID('T '), cTID('HSBC'), desc2);desc1.putString(cTID('Srce'), "photoshopPicker");executeAction(cTID('setd'), desc1, dialogMode);};// Fillfunction step48(enabled, withDialog) {if (enabled != undefined && !enabled)return;var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);var desc1 = new ActionDescriptor();desc1.putEnumerated(cTID('Usng'), cTID('FlCn'), cTID('BckC'));desc1.putUnitDouble(cTID('Opct'), cTID('#Prc'), 100);desc1.putEnumerated(cTID('Md '), cTID('BlnM'), cTID('Nrml'));executeAction(cTID('Fl '), desc1, dialogMode);};step1();// Makestep2();// Merge Visiblestep3();// Setstep4();// Makestep5();// Merge Visiblestep6();// Setstep7();// Makestep8();// Merge Visiblestep9();// Setstep10();// Makestep11();// Merge Visiblestep12();// Setstep13();// Selectstep14();// Convert to Smart Objectstep15();// Gaussian Blurstep16();// Surface Blurstep17();// Setstep18();// Selectstep19();// Convert to Smart Objectstep20();// Gaussian Blurstep21();// Surface Blurstep22();// Selectstep23();// Setstep24();// Selectstep25();// Setstep26();// Setstep27();// Setstep28();// Setstep29();// Selectstep30();// Selectstep31();// Merge Layersstep32();// Setstep33();// Selectstep34();// Convert to Smart Objectstep35();// High Passstep36();// Setstep37();// Setstep38();// Selectstep39();// Convert to Smart Objectstep40();// High Passstep41();// Setstep42();// Selectstep43();// Makestep44();// Setstep45();// Makestep46();// Setstep47();// Setstep48();// Fill},};

3.作者答疑

如有疑问,请留言。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。