Change the color on more than one layer property

In the layers panel, can I change the color of layers Layer property?

that is, he wants all red green layers.

I can select all red layers at a time and make them green?

Picture 8.png

If you have CS4 or higher, you can use this script to set color of several layer.

function setActiveLayerColor( color ) {
     var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    desc.putReference( charIDToTypeID('null'), ref );
        var colorEnumDesc = new ActionDescriptor();
        colorEnumDesc.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), color );
    desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), colorEnumDesc );
    executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
};
function getSelectedLayersIdx(){
          var selectedLayers = new Array;
          var ref = new ActionReference();
          ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
          var desc = executeActionGet(ref);
          if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
               desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
                var c = desc.count
                var selectedLayers = new Array();
                for(var i=0;i 0 ) {
               var idselectionModifier = stringIDToTypeID( "selectionModifier" );
               var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
               var idaddToSelection = stringIDToTypeID( "addToSelection" );
               desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
          }
          desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
          executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
     }
};

var colors = ['None','Red','Orange','Yellow','Green','Blue','Violet','Grey'];
var colorIDs = [charIDToTypeID('None'),
                         charIDToTypeID( "Rd  " ),
                         charIDToTypeID( "Orng" ),
                         charIDToTypeID( "Ylw " ),
                         charIDToTypeID( "Grn " ),
                         charIDToTypeID( "Bl  " ),
                         charIDToTypeID( "Vlt " ),
                         charIDToTypeID( "Gry " )];
var dlg = new Window( 'dialog', 'Change Layer Color' );
dlg.ddColors= dlg.add("dropdownlist", undefined,  colors);
dlg.ddColors.preferredSize.width = 100;
dlg.ddColors.items[0].selected = true;
dlg.ok = dlg.add('button',undefined,'Ok');
dlg.cancel = dlg.add('button',undefined,'Cancel');
var results = dlg.show();
if( results == 1 ){
     var selectedLayers =  getSelectedLayersIdx();
     for( var l=0;l 
         

Tags: Photoshop

Similar Questions

  • SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    SQL: how to display the second string of the function in the Jobs table only if the function has more than one string.

    Hello

    You can use REGEXP_SUBSTR Oracle/PLSQL: REGEXP_SUBSTR function

    Select the function double REGEXP_SUBSTR('PUBLIC RELATION REPRESENTATIVE ','[^]+',1,2);

    Do you have any value of the column as no 2nd string?

  • FT in case of failure due to the VM has more than one vCPU

    I am so excited to try FT 6 ESXi.

    However, when I activate the FT function, I get the error:

    'Entity VM_Name fault tolerance configuration has a problem: the virtual machine has more than one virtual CPU. "

    FT-Issue-20150616.jpg

    I set config to do anything?

    Please notify. Thank you!!

    I got the answer of the VMware consultant.

    IDE is not taken in charge for SMP - FT.

    Thank you!

  • How to list all the vm with more than one network card?

    Hello

    Is it possible to only list all my s vm in my environment with more than one network card?

    I tried using the Get-NetowrkAdapter cmdlet, but could not get the desired results.

    Get - VM | Get-NetworkAdapter | Select-Object Name. ConvertTo-HTML-head $a - body "Virtual Machines < H2 > < / H2 > ' | Out-file D:\vms.htm

    Thank you

    Hello, AGFlora-

    Of course, you can do this with the standard as cmdlets:

    ## using standard cmdletsGet-VM | Select Name, @{n="NumNICs"; e={(Get-NetworkAdapter -VM $_ | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Or, if you want to get the results a little (or a lot) more quickly, you can use the cmdlet Get-view as:

    ## fast-like, using Get-ViewGet-View -ViewType VirtualMachine -Property Name,Config.Hardware.Device | Select Name,@{n="NumNICs"; e={($_.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualEthernetCard]} | Measure-Object).Count}} | ?{$_.NumNICs -gt 1}
    

    Those are both by selecting the names of virtual machines and their number of network cards.  Then you can direct this output to Export-Csv, ConvertTo-HTML, what you like.  What to do for you?

  • Dodging on more than one layer without merging

    Hello I'd like to see comment the UTI dodge or other similar tools but by acting on several layers at the same time. Thank you

    Hello, do someone knows if it is possible on photoshop CC2015 to Dodge several layers without their merger at the same time? Thank you

    Put layers in a group, and then adding some sort of adjustment layer, as curves, levels, etc., will allow you to adjust the multiple layers. If you don't want to affect the lower layers of this group, you must change the blending mode of the group other than to pass through. If you want to really use the dodge and burn tools, you could do a merge visible stamp: ctrl-alt-shift-E, that will make a copy of all visible layers. Then you can Dodge and burn that, while retaining the original layers intact.

  • Treatment of the FileBundle, please wait: the process takes more than one hour

    I'm trying to submit my file app world Portal bar and it takes more than an hour to process filebundle.

    I am in the presentation of the new press, step 4.

    I run first download a small file (3 MB). After downloading it, I deleted it and then I download my bar of 13MB file.

  • It is possible to select more than one layer by selecting the first and the last layers?

    I frequently get Illustrator files which are individual objects such as the paths on separate layers that can be grouped together to make the shorter layers. I find that I have to change click on each individual layer to select it to finally bring together them. Sometimes, I have 25 or so layers that I need to select. Is there a way to select the first and the last layer in the layers palette and have Illustrator select all the layers in the meantime?

    Don't know about the selection of layers of first/last, but to select several consecutive layers in the layers palette...

    Option-click on (Mac) on a layer to select it and, with the option always pressed key, drag to the bottom of the list - DO NOT slip on as logical target icons you like.  When you drag to the bottom of the list of layers, the icons of the target will become selected.

    Shift + Option-click allows you to ignore the layers and continue to select consecutive additional layers on the bottom of the palette.

    Note: Drag slowly or some layers would not choose.

    Strange, I know.  It took me years to come across this.

  • When you create a calendar in Photos for Mac, I can't work on the use of more than one Photo per month

    I created a calendar using Photos for Mac (picture 1,5).

    However, I can't create each month using several photos. It is the first calendar, I've done since the change of iPhoto pictures. I know I used to be able to choose various options for layout, including several photos in iPhoto. I just hope that it is something simple that I forgot.

    Thanks in advance.

    Right-click on a photo placed and select layout options - you have options from one to seven photos here

    LN

  • Create the custom for more than one table, and then another user authentication scheme

    Hello

    I already test to create an courable authentication scheme. It works very well!

    My problem is that I designed a database on the data requirements. So the results are two different user tables - one record data of the company and the other to consist of data from dealers. Both can register on my web application with e-mail address (Unique).

    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.

    Can you give me some more ideas how slove/manage this problem...

    I am using APEX 4.0.2 on an Oracle 10 g database.

    NEDO

    Edited by: Mr.Nedo the 12.05.2011 02:16

    >
    The authentication scheme in APEX checks the table right on a data user!

    A possible solution is to call the company with the dealer table table. But in the picture of society isn't some attributes wich find no need in the dealer table and vice versa.
    Further, that it is not possible that the concessionaire may register that they self as a company with the same which e-mail they use for registration as a reseller.
    >

    Create a view which combines common elements of the user of the 2 tables and the authentication scheme based checks on the view.

  • Get the data with more than one of the desired value

    Hello

    I need to shoot the records with one value of 'Other' more on delivery days fields.
    Delivery of fields are Mon, Mar, sea, game, Fri and Sam that indicates where the item will be shipped. The value can be at home, work, or other.

    Examples of data include:
    cust_id: 123
    Article: newspaper
    Mon: Home
    Kill: Work
    Sea: other
    game: Home
    Fri: other
    Sam: other


    And here is my request so far.
    Select
    cust_id,
    agenda,
    LUN,
    Mar,
    Kills,
    game,
    Fri,
    Sam
    sum (case when (del_mon = 'o' or del_tue =' o 'or del_wed =' o 'or del_thu =' o 'or del_fri =' o ' or del_sat = 'O') then 1)
    otherwise 0 end) as day_ctr

    of the customer

    Could you please help me with the right formula should I get this?

    Thank you in advance...

    Hello

    This should do it:

    Scott@my11g SQL>with sampledata as (
      2  select 123 cust_id, 'newspaper' item, 'Home' mon, 'Work' tue, 'Other' wed, 'Home' thu, 'Other' fri, 'Other' sat from dual
      3  union all
      4  select 456, 'newspaper' item, 'Home' mon, 'Work' tue, 'Home' wed, 'Home' thu, 'Home' fri, 'Other' sat from dual
      5  )
      6  --#### True query starts here ####
      7  select *
      8  from sampledata
      9  where (
     10  decode(mon,'Other',1,0)
     11  +decode(tue,'Other',1,0)
     12  +decode(wed,'Other',1,0)
     13  +decode(thu,'Other',1,0)
     14  +decode(fri,'Other',1,0)
     15  +decode(sat,'Other',1,0)
     16  )>1 ;
    
       CUST_ID ITEM      MON  TUE  WED   THU  FRI   SAT
    ---------- --------- ---- ---- ----- ---- ----- -----
           123 newspaper Home Work Other Home Other Other
    
  • Illustrator script to select more than one layer

    I have about 74 layers in illustrator and I want to run a script to select the combination of layers at once.

    Because for example I want 5 layers to be selected and save as a .jpg. So say I want to select other 3 layers to save it as a separate .jpg file. If I do it manually, it is up to 300 000 images.

    Can I create a CSV with all layers to select presented in a row. I need help with command to select 4 or more layers at the same time to tell if I layer1, layer2, Layer 3, layer4 then a command to select the 4 layers and save as a .jpg file.

    Any help will be greatly appreciated.

    Thank you

    H Patel

    PRESIDENT AND CHIEF EXECUTIVE OFFICER

    Data entry India

    Another variant - with the visibility of the layer

    var layerCount;

    layerCount = app.activeDocument.layers.length;

    for (j = 0; j<>

    {

    app.activeDocument.layers [j] .visible = false;

    }

    var County;
    Count = 1;

    var f = new File ("C:\\test.txt");
    f.Open ("r");

    while(!f.EOF)
    {
    c = f.Readln ();

    var arr = c.split(";");

    var len = arr.length;

    for (i = 0; i<>
    {
    throw = app.activeDocument.layers.getByName (arr [i]);

    Lay.Visible = true;
    lay.hasSelectedArtwork = true;
       
    }
    var exportOptions = new ExportOptionsJPEG();
    var type = ExportType.JPEG
    fileSpec var = new File("c:\\"+count+".jpg");
    app.activeDocument.exportFile (fileSpec, exportOptions type);

    for (i = 0; i<>
    {
    app.activeDocument.layers.getByName(arr[i]).hasSelectedArtwork = false;

    app.activeDocument.layers.getByName(arr[i]).visible = false;

    }
    Count ++;

    }

  • Understand the joins with more than one column?

    Hi all

    I want to know if I understand.

    When you join two tables, and the join condition has four columns (two for each table) as follows:

    where d.deptno = e.deptno

    and d.name = e.name

    I think it means the engine must choose "the selection list" when he sees a number of d.deptno (for example 10) equal number in e.deptno, and

    the d.name from the same folder (10) must be equal to the value of e.name.

    I understand?

    Another example, I want to understand, when we say:

    where d.deptno = e.deptno

    and d.deptno = s.deptno

    This means that the number (10) should for example equal to one (10) in the table (e), and the same 10 must be equal to a value in the table (s)?

    Am I wrong?

    Thank you

    Hello

    Yes, what you say is right; but don't take my word for it.  Try it yourself.   Create a couple of small tables.  Insert some data that matches (and will appear in the results of joints) and others that does not (and should not be in the results) and see if the results are what you expected.

  • How to drag more than one layer to a new tab?

    I want to drag several adjustment layers, usually four with masks by default but no masking has been applied, from one document to the other. I read several articles about it, but neither method works reliably for me. I have CS6 running.

    Any suggestions?

    I don't know of a simple drop and drag, but I tried this method in CS6 (Mac) and it works.

    Select layers to copy in the layers panel
    Right-click on the selected layers.

    Click on duplicate layers in the context menu

    Select destination such as what ever the document you opened in PS
    Fact

  • Copy more than one layer at a time

    I have a document with several pages. Page 1 I have a rectangle on a single layer, a block of text on a second layer, and a polygon on a third layer. I want to copy these three items in each of the other pages of the document. I want to be exactly the same situation that it is on page 1 and the same layer to page 1 of each object. If I select three objects and copy and paste it, it puts it all on the same layer. Is it possible to keep them on their original layers when pasting?

    Open the menu block and activate remembers layers from the layers panel.

    Bob

  • save more than one layer at a time as a jpeg

    Help!  When I edit a photo I can easily create 100 different layers that must be saved individually.  How to save each of them to JPEG without manually by hand.  I've been using photoshop elements version 6 and just had the demo for version 10 hoping there was something that could be used. suggestions for this sortcut would be very appreciated.    Greg

    This is a link to a zip file containing the export of layers to the script files.

    (Exchange is a bit old)

    (the pse above is just a screenshot of the EP 10, 6 will not have the gray color)

    https://Acrobat.com/#d=blJVJ4ZFfR7dRg24q-mBbQ

    How to install (vista)

    1. unzip the file

    2. right click on the export of layers to Files.jsx and choose copy.

    3. navigate to C:\Program Files (x 86) \Adobe\Photoshop 6.0\Presets\Scripts items, right click and choose Paste.

    4. start PES 6 and the export of layers to the script files should be under file > automation tools.

    This script should work with pse 6 pse 10 thru Windows.

    Haven't tested on a mac.

Maybe you are looking for

  • Question of memories in pictures

    Hi, after installing iOS 10 I let all the Synchronization tab required memories (I have a large photo library iCloud - more than 100 GB)... At first, it appeared to work, but now he is always stuck on three days ago, and the memories are always the s

  • Norton Toolbar in Firefox 27.0.1 off 2014.6.1.2... How can I activate?

    Update for Firefox 27.0.1, the result was that my Norton Toolbar 2014.6.1.2 has been disabled. It can be activated?

  • timer output cRIO

    Hello world I'm new with labVIEW but I need help to speed up my studies to a system, I did work.I work with a cRIO and some AI and DI/O modules. (1) I have an analog input, an AI, that when she is less than a fixed value, say for example 6, it will g

  • Z220 CMT: firmware Win 8 factory 7 and install new boot disks (RAID 1)

    My Z220 came with the copy of Win 7 Pro/64-bit factory-loaded, lowered to win 8. The supplied HD is just a Seagate 500 MB to 6 MB/s SATA drive. I want to change my boot disks for a pair of WD series RE 1 TB disks in a RAID1 configuration. The 220 cam

  • Spyware impossible question of connection in any mode system

    Hello I am facing spyware issue. Not able to login in any mode window. Got a window at the time of the connection and ask for unlock code. So, what's the unlock code? I don't have a CD bootable Windows XP CD or third party. What should I do?