Copier le lien dans le Presse-papiers
Copié
get this
// =======================================================
var idmove = charIDToTypeID( "move" );
var desc14 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref9 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref9.putEnumerated( idChnl, idOrdn, idTrgt );
desc14.putReference( idnull, ref9 );
var idT = charIDToTypeID( "T " );
var
...Copier le lien dans le Presse-papiers
Copié
i can not find a Method to do this
Copier le lien dans le Presse-papiers
Copié
I consider it a bad idea to reply to one’s own thread when no one else has posted a comment yet.
I for one am not clear on what you are trying to achieve.
If you want to create a CMYK file with your multichannel file’s channels additionally to the CMYK channels I think you have to add 4 channels at the top.
Have you tried recording Action Manager code with ScriptingListener.plugin yet?
Copier le lien dans le Presse-papiers
Copié
creat a new channel it is at at the last ,i want not use the action i want use the js
Copier le lien dans le Presse-papiers
Copié
Once again: Have you tried recording Action Manager code with ScriptingListener.plugin yet?
(This does produce JavaScript code.)
Copier le lien dans le Presse-papiers
Copié
so thanks but it make so mach code ~~
Copier le lien dans le Presse-papiers
Copié
zhangzaigang wrote:
creat a new channel it is at at the last ,i want not use the action i want use the js
An Alpha Channel and a save selection are the same thing. There are many ways to create an active selection using Scripting code once you have an active selection you can save is as a Alpha channel you can name it any way you want and you Load(select) alpha channels by name. It is not possible to move Alpha channels to the top of the channel stack the top of the channels stack changes with edit mode like RGB, CMYK, Grayscale and so do the number of channels these modes have. Alpha channels are below these and between these there may be the current layer's layer mask channel. I don't understand why you need to move the position of an alpha channel in the stack.
Copier le lien dans le Presse-papiers
Copié
多谢了 thanks
Copier le lien dans le Presse-papiers
Copié
// =======================================================
var idmove = charIDToTypeID( "move" );
var desc14 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref9 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref9.putEnumerated( idChnl, idOrdn, idTrgt );
desc14.putReference( idnull, ref9 );
var idT = charIDToTypeID( "T " );
var ref10 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
ref10.putIndex( idChnl, 1 );
desc14.putReference( idT, ref10 );
executeAction( idmove, desc14, DialogModes.NO );
// =======================================================
var idCnvM = charIDToTypeID( "CnvM" );
var desc15 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var idGrys = charIDToTypeID( "Grys" );
desc15.putClass( idT, idGrys );
executeAction( idCnvM, desc15, DialogModes.NO );
// =======================================================
var idCnvM = charIDToTypeID( "CnvM" );
var desc16 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var idCMYM = charIDToTypeID( "CMYM" );
desc16.putClass( idT, idCMYM );
executeAction( idCnvM, desc16, DialogModes.NO );
pls try
Copier le lien dans le Presse-papiers
Copié
thank you 非常感谢
Copier le lien dans le Presse-papiers
Copié
duanlook, going grayscale first was a good idea, probably much faster than creating and moving four channels.
Copier le lien dans le Presse-papiers
Copié
thanks i have make it
Copier le lien dans le Presse-papiers
Copié
// =======================================================choose alpha 1 channel
var idslct = charIDToTypeID( "slct" );
var desc718 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref599 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
ref599.putName( idChnl, "Alpha 1" );
desc718.putReference( idnull, ref599 );
executeAction( idslct, desc718, DialogModes.NO );
// =======================================================move alpha 1 to top
var idmove = charIDToTypeID( "move" );
var desc719 = new ActionDescriptor();
var idnull = charIDToTypeID( "null" );
var ref600 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
var idOrdn = charIDToTypeID( "Ordn" );
var idTrgt = charIDToTypeID( "Trgt" );
ref600.putEnumerated( idChnl, idOrdn, idTrgt );
desc719.putReference( idnull, ref600 );
var idT = charIDToTypeID( "T " );
var ref601 = new ActionReference();
var idChnl = charIDToTypeID( "Chnl" );
ref601.putIndex( idChnl, 1 );
desc719.putReference( idT, ref601 );
executeAction( idmove, desc719, DialogModes.NO );
// =======================================================
var idCnvM = charIDToTypeID( "CnvM" );
var desc720 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var idGrys = charIDToTypeID( "Grys" );
desc720.putClass( idT, idGrys );
executeAction( idCnvM, desc720, DialogModes.NO );
// =======================================================
var idCnvM = charIDToTypeID( "CnvM" );
var desc721 = new ActionDescriptor();
var idT = charIDToTypeID( "T " );
var idCMYM = charIDToTypeID( "CMYM" );
desc721.putClass( idT, idCMYM );
executeAction( idCnvM, desc721, DialogModes.NO );
Copier le lien dans le Presse-papiers
Copié
thanks 0..0
Trouvez plus d’idées, d’événements et de ressources dans la nouvelle communauté Adobe
Explorer maintenant