• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

les scripts photoshop

New Here ,
Mar 18, 2015 Mar 18, 2015

Copy link to clipboard

Copied

Bonjour,

Que veut dire la commande (dans un script) : selection calque 1 sur calque 2 (sans rendre visible) ?

Merci

TOPICS
Actions and scripting

Views

236

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Mar 19, 2015 Mar 19, 2015

Copy link to clipboard

Copied

Please elaborate, maybe posting some screenshots could help.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 19, 2015 Mar 19, 2015

Copy link to clipboard

Copied

LATEST

This should select the next layer when it is not visible.

nextLayer(0); // up

//nextLayer(1); // down

function nextLayer(direction){

var ref = new ActionReference();

ref.putEnumerated( charIDToTypeID('Lyr '),charIDToTypeID('Ordn'),charIDToTypeID('Trgt') );

try{

activeDocument.backgroundLayer;

index = executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1;

}catch(e){

index = executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ));

}

ref = new ActionReference();

if(direction == 0){

ref.putIndex(charIDToTypeID("Lyr "), index  + 1);

}else{

    ref.putIndex(charIDToTypeID("Lyr "), index  -1);

    }

var desc = new ActionDescriptor();

desc.putReference(charIDToTypeID("null"), ref );

desc.putBoolean( charIDToTypeID( "MkVs" ), false );

try{

executeAction(charIDToTypeID("slct"), desc, DialogModes.NO );

}catch(e){}

};

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines