Iska, вот текст:
Код:
// ==============================================================
// by Scarabay. Скрипт генерации бамп текстур для игры Сталкер
// ==============================================================
var id124 = charIDToTypeID( "Dplc" );
var desc8 = new ActionDescriptor();
var id125 = charIDToTypeID( "null" );
var ref3 = new ActionReference();
var id126 = charIDToTypeID( "Dcmn" );
var id127 = charIDToTypeID( "Ordn" );
var id128 = charIDToTypeID( "Frst" );
ref3.putEnumerated( id126, id127, id128 );
desc8.putReference( id125, ref3 );
var id129 = charIDToTypeID( "Nm " );
desc8.putString( id129, "temp" );
executeAction( id124, desc8, DialogModes.NO );
// =======================================================
var id130 = charIDToTypeID( "Mk " );
var desc9 = new ActionDescriptor();
var id131 = charIDToTypeID( "Nw " );
var desc10 = new ActionDescriptor();
var id132 = charIDToTypeID( "ClrI" );
var id133 = charIDToTypeID( "MskI" );
var id134 = charIDToTypeID( "MskA" );
desc10.putEnumerated( id132, id133, id134 );
var id135 = charIDToTypeID( "Clr " );
var desc11 = new ActionDescriptor();
var id136 = charIDToTypeID( "Rd " );
desc11.putDouble( id136, 255.000000 );
var id137 = charIDToTypeID( "Grn " );
desc11.putDouble( id137, 0.000000 );
var id138 = charIDToTypeID( "Bl " );
desc11.putDouble( id138, 0.000000 );
var id139 = charIDToTypeID( "RGBC" );
desc10.putObject( id135, id139, desc11 );
var id140 = charIDToTypeID( "Opct" );
desc10.putInteger( id140, 50 );
var id141 = charIDToTypeID( "Chnl" );
desc9.putObject( id131, id141, desc10 );
executeAction( id130, desc9, DialogModes.NO );
// =======================================================
var id142 = charIDToTypeID( "slct" );
var desc12 = new ActionDescriptor();
var id143 = charIDToTypeID( "null" );
var ref4 = new ActionReference();
var id144 = charIDToTypeID( "Dcmn" );
ref4.putOffset( id144, -1 );
desc12.putReference( id143, ref4 );
executeAction( id142, desc12, DialogModes.NO );
// =======================================================
var id145 = charIDToTypeID( "setd" );
var desc13 = new ActionDescriptor();
var id146 = charIDToTypeID( "null" );
var ref5 = new ActionReference();
var id147 = charIDToTypeID( "Chnl" );
var id148 = charIDToTypeID( "fsel" );
ref5.putProperty( id147, id148 );
desc13.putReference( id146, ref5 );
var id149 = charIDToTypeID( "T " );
var id150 = charIDToTypeID( "Ordn" );
var id151 = charIDToTypeID( "Al " );
desc13.putEnumerated( id149, id150, id151 );
executeAction( id145, desc13, DialogModes.NO );
// =======================================================
var id152 = charIDToTypeID( "sdk1" );
var desc14 = new ActionDescriptor();
var id153 = charIDToTypeID( "Amnt" );
var id154 = charIDToTypeID( "#Prc" );
desc14.putUnitDouble( id153, id154, 10.000000 );
var id155 = charIDToTypeID( "filT" );
var id156 = charIDToTypeID( "typT" );
var id157 = charIDToTypeID( "fil3" );
desc14.putEnumerated( id155, id156, id157 );
var id158 = charIDToTypeID( "conV" );
var id159 = charIDToTypeID( "typC" );
var id160 = charIDToTypeID( "cnv1" );
desc14.putEnumerated( id158, id159, id160 );
var id161 = charIDToTypeID( "alph" );
var id162 = charIDToTypeID( "typA" );
var id163 = charIDToTypeID( "alp1" );
desc14.putEnumerated( id161, id162, id163 );
executeAction( id152, desc14, DialogModes.NO );
// =======================================================
var id164 = charIDToTypeID( "slct" );
var desc15 = new ActionDescriptor();
var id165 = charIDToTypeID( "null" );
var ref6 = new ActionReference();
var id166 = charIDToTypeID( "Chnl" );
var id167 = charIDToTypeID( "Chnl" );
var id168 = charIDToTypeID( "Rd " );
ref6.putEnumerated( id166, id167, id168 );
desc15.putReference( id165, ref6 );
executeAction( id164, desc15, DialogModes.NO );
// =======================================================
var id169 = charIDToTypeID( "copy" );
executeAction( id169, undefined, DialogModes.NO );
// =======================================================
var id170 = charIDToTypeID( "slct" );
var desc16 = new ActionDescriptor();
var id171 = charIDToTypeID( "null" );
var ref7 = new ActionReference();
var id172 = charIDToTypeID( "Dcmn" );
ref7.putOffset( id172, 1 );
desc16.putReference( id171, ref7 );
executeAction( id170, desc16, DialogModes.NO );
// =======================================================
var id194 = charIDToTypeID( "slct" );
var desc22 = new ActionDescriptor();
var id195 = charIDToTypeID( "null" );
var ref12 = new ActionReference();
var id196 = charIDToTypeID( "Chnl" );
ref12.putName( id196, "Альфа 1" );
desc22.putReference( id195, ref12 );
executeAction( id194, desc22, DialogModes.NO );
// =======================================================
var id197 = charIDToTypeID( "past" );
var desc23 = new ActionDescriptor();
var id198 = charIDToTypeID( "AntA" );
var id199 = charIDToTypeID( "Annt" );
var id200 = charIDToTypeID( "Anno" );
desc23.putEnumerated( id198, id199, id200 );
executeAction( id197, desc23, DialogModes.NO );
// =======================================================
var id182 = charIDToTypeID( "slct" );
var desc19 = new ActionDescriptor();
var id183 = charIDToTypeID( "null" );
var ref9 = new ActionReference();
var id184 = charIDToTypeID( "Dcmn" );
ref9.putOffset( id184, -1 );
desc19.putReference( id183, ref9 );
executeAction( id182, desc19, DialogModes.NO );
// =======================================================
var id185 = charIDToTypeID( "slct" );
var desc20 = new ActionDescriptor();
var id186 = charIDToTypeID( "null" );
var ref10 = new ActionReference();
var id187 = charIDToTypeID( "Chnl" );
var id188 = charIDToTypeID( "Chnl" );
var id189 = charIDToTypeID( "Grn " );
ref10.putEnumerated( id187, id188, id189 );
desc20.putReference( id186, ref10 );
executeAction( id185, desc20, DialogModes.NO );
// =======================================================
var id190 = charIDToTypeID( "copy" );
executeAction( id190, undefined, DialogModes.NO );
// =======================================================
var id191 = charIDToTypeID( "slct" );
var desc21 = new ActionDescriptor();
var id192 = charIDToTypeID( "null" );
var ref11 = new ActionReference();
var id193 = charIDToTypeID( "Dcmn" );
ref11.putOffset( id193, 1 );
desc21.putReference( id192, ref11 );
executeAction( id191, desc21, DialogModes.NO );
// =======================================================
var id173 = charIDToTypeID( "slct" );
var desc17 = new ActionDescriptor();
var id174 = charIDToTypeID( "null" );
var ref8 = new ActionReference();
var id175 = charIDToTypeID( "Chnl" );
var id176 = charIDToTypeID( "Chnl" );
var id177 = charIDToTypeID( "Bl " );
ref8.putEnumerated( id175, id176, id177 );
desc17.putReference( id174, ref8 );
executeAction( id173, desc17, DialogModes.NO );
// =======================================================
var id178 = charIDToTypeID( "past" );
var desc18 = new ActionDescriptor();
var id179 = charIDToTypeID( "AntA" );
var id180 = charIDToTypeID( "Annt" );
var id181 = charIDToTypeID( "Anno" );
desc18.putEnumerated( id179, id180, id181 );
executeAction( id178, desc18, DialogModes.NO );
// =======================================================
var id201 = charIDToTypeID( "slct" );
var desc24 = new ActionDescriptor();
var id202 = charIDToTypeID( "null" );
var ref13 = new ActionReference();
var id203 = charIDToTypeID( "Dcmn" );
ref13.putOffset( id203, -1 );
desc24.putReference( id202, ref13 );
executeAction( id201, desc24, DialogModes.NO );
// =======================================================
var id204 = charIDToTypeID( "slct" );
var desc25 = new ActionDescriptor();
var id205 = charIDToTypeID( "null" );
var ref14 = new ActionReference();
var id206 = charIDToTypeID( "Chnl" );
var id207 = charIDToTypeID( "Chnl" );
var id208 = charIDToTypeID( "Bl " );
ref14.putEnumerated( id206, id207, id208 );
desc25.putReference( id205, ref14 );
executeAction( id204, desc25, DialogModes.NO );
// =======================================================
var id209 = charIDToTypeID( "copy" );
executeAction( id209, undefined, DialogModes.NO );
// =======================================================
var id210 = charIDToTypeID( "slct" );
var desc26 = new ActionDescriptor();
var id211 = charIDToTypeID( "null" );
var ref15 = new ActionReference();
var id212 = charIDToTypeID( "Dcmn" );
ref15.putOffset( id212, 1 );
desc26.putReference( id211, ref15 );
executeAction( id210, desc26, DialogModes.NO );
// =======================================================
var id213 = charIDToTypeID( "slct" );
var desc27 = new ActionDescriptor();
var id214 = charIDToTypeID( "null" );
var ref16 = new ActionReference();
var id215 = charIDToTypeID( "Chnl" );
var id216 = charIDToTypeID( "Chnl" );
var id217 = charIDToTypeID( "Grn " );
ref16.putEnumerated( id215, id216, id217 );
desc27.putReference( id214, ref16 );
executeAction( id213, desc27, DialogModes.NO );
// =======================================================
var id218 = charIDToTypeID( "past" );
var desc28 = new ActionDescriptor();
var id219 = charIDToTypeID( "AntA" );
var id220 = charIDToTypeID( "Annt" );
var id221 = charIDToTypeID( "Anno" );
desc28.putEnumerated( id219, id220, id221 );
executeAction( id218, desc28, DialogModes.NO );
// =======================================================
var id222 = charIDToTypeID( "setd" );
var desc29 = new ActionDescriptor();
var id223 = charIDToTypeID( "null" );
var ref17 = new ActionReference();
var id224 = charIDToTypeID( "Chnl" );
var id225 = charIDToTypeID( "fsel" );
ref17.putProperty( id224, id225 );
desc29.putReference( id223, ref17 );
var id226 = charIDToTypeID( "T " );
var id227 = charIDToTypeID( "Ordn" );
var id228 = charIDToTypeID( "None" );
desc29.putEnumerated( id226, id227, id228 );
executeAction( id222, desc29, DialogModes.NO );
// =======================================================
var id229 = charIDToTypeID( "slct" );
var desc30 = new ActionDescriptor();
var id230 = charIDToTypeID( "null" );
var ref18 = new ActionReference();
var id231 = charIDToTypeID( "Dcmn" );
ref18.putOffset( id231, -1 );
desc30.putReference( id230, ref18 );
executeAction( id229, desc30, DialogModes.NO );
// =======================================================
var id232 = charIDToTypeID( "Cls " );
var desc31 = new ActionDescriptor();
var id233 = charIDToTypeID( "Svng" );
var id234 = charIDToTypeID( "YsN " );
var id235 = charIDToTypeID( "N " );
desc31.putEnumerated( id233, id234, id235 );
executeAction( id232, desc31, DialogModes.NO );
// =======================================================
var id103 = charIDToTypeID( "slct" );
var desc4 = new ActionDescriptor();
var id104 = charIDToTypeID( "null" );
var ref1 = new ActionReference();
var id105 = charIDToTypeID( "Chnl" );
var id106 = charIDToTypeID( "Chnl" );
var id107 = charIDToTypeID( "RGB " );
ref1.putEnumerated( id105, id106, id107 );
desc4.putReference( id104, ref1 );
executeAction( id103, desc4, DialogModes.NO );
Сделаю поправочку. Скрипт надо запускать через фотошоп. Неподскажете, как это сделать?
|