Script to delete hidden layers that are not used in any layer Comp?

Hello.

I have turend the web towards the search for a script that would do the following:

  1. Search in all compositions of layers in the document
  2. Check which layers are hidden on all layers
  3. Delete/mark with the color of the layers found.

If someone can provide a script that would do such a thing - it would be much appreciated.

Kind regards

Fade.

This should mark these red layers...

function main(){
if(!documents.length) return;
var doc = activeDocument;
selectAllLayers();
var layersSelected=getSelectedLayersIdx();
var layerIDs=[];
for(var d =0;d 
         

Tags: Photoshop

Similar Questions

  • A way to show items that are not used in the sequence

    Hello world

    is there a way to display items that are not used in the sequence.

    in order not to forget the "rushes" in the Assembly?

    my best,

    Turn on the use Audio and video columns in the sandbox and then sort by those.

  • How can I find photographs that are not assigned to any collection?

    Hello!

    I use LR 5.7.1 on a Mac.

    When I've airbrushed raw with PS CC images (and do not need file PSD more) I export the PSD (which is in my catalog) in JPG format and let it automatically add to my catalog. After that, I remove the PSD file. Which works very well.

    But... the new JPG file is not assigned to any collection. This is no problem unless I forgot to do it manually after export (and import).

    This brings me to my question.

    How can I find photographs that are not assigned to any collection?

    I tried with a smart collection after I found nothing suitable in the filter library. The search criteria, I tried are Source-> Collection with any of the conditions. One with an empty field, then with just a space and so on.

    Does anyone have a good tip for me?

    Thomas

    You can also add numbers if you have collections that do not use characters of the alphabet.

  • y at - it a button to remove all the nuances that are not used in an file?

    Hey all,.

    I was wondering is there a button that removes all the nuances that are not used in an illustrator file?

    Any help would be great

    Look in the Actions Panel. It should be an action he who says to remove all unused items in the Panel.

  • queue on the profile that are not used

    Hi guys,.

    is anyway to wrap on the profile that are not used or attributed to any user name or roles?

    flaskvacuum wrote:
    Hi guys,.

    is anyway to wrap on the profile that are not used or attributed to any user name or roles?

    SQL> CREATE PROFILE test LIMIT
      2     FAILED_LOGIN_ATTEMPTS 5
      3     PASSWORD_LIFE_TIME 60
      4     PASSWORD_REUSE_TIME 60
      5     PASSWORD_REUSE_MAX 5
      6     PASSWORD_VERIFY_FUNCTION null
      7     PASSWORD_LOCK_TIME 1/24
      8     PASSWORD_GRACE_TIME 10;
    
    Profile created.
    
    -- Created but not assigned --
    SQL> select distinct profile from dba_profiles where profile not in (select profile from dba_users);
    
    PROFILE
    ------------------------------
    TEST
    
    SQL>
    
  • Find indexes in the schema that are not used

    Hello
    Anyone know an easy way to SQL or EM to find all indexes that are not used (not accessed) in a schema?
    Greetings

    Published by: user552215 on January 26, 2012 04:15

    Salvation;

    Please see:

    Identify unused indexes [ID 144070.1]
    Identify unused indexes with the ALTER INDEX TRACKING controls [ID 136642.1]

    Respect of
    HELIOS

  • can I install PES 11 on two laptops that are not used in the same place?

    Can I install PES 11 on two laptops that are not used in the same place or at the same time?

    Yes, your license entitles you to two simultaneous activations.

  • How is possible to create a smart collection to find all the photos that are not belongs to any collection?

    Hello

    How is possible to create a Smart Collection to find all the photos are not belongs to any collection?

    "Yesterday I was importing a lot of photo when my camera battery died then I succeeded him and continued to import without thinking that the previous import collection literally means" previous import. "

    So I need to find a way to create a smart collection that will reveal all the photos that do not belong to any collection.

    I solved the problem with a workaround is creating a collection based on the date of the photo which worked well, but must be nice to have a more general collection to find all the photo that are not from the collections.

    Thanks in advance,

    Marco.

    Another way to do

    1. Select all photos in the catalog

    2 dismiss a color label

    3. go to collections and multi select all your collections (ctrl)

    4. select images and give them a color

    5. return to the catalogue

    6. filter by color label - No

  • HOW CAN I DELETE A FOLDER THAT IS NOT USED, I CREATED IN MY EMAIL ADDRESS

    I created an alais and named a new folder for the job. Now, I deleted my alais but do not know how to detele file. Someone at - it an idea how to delete this? Thanking you in advance.

    Hello, disgusted,

    What version of Windows are you using?

    Right-click on the folder and select delete

  • Attempt to remove software that are not used.

    According to uninstall, shows all the programs, but not how they are used, or when they were last used.  Windows 7 to do this, but not windows vista.  How can I get these numbers or dates will appear when I use the uninstall feature?

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/c5f24e5e-73Cf-4ac1-AFD1-d7aae6323b10

    Read the above info.

    See you soon.

    Mick Murphy - Microsoft partner

  • When file/collection, how can I delete all the related items that are not on my last composition?

    Hello, I have a great difficulty using the file/collection a large file I did months ago, because when I use it, the file is created, but it takes 2.5 to space! compared to others of my works, taking almost 1 TB of files, this one is too big and I think by deleting some files, but I don't want to make a mistake, so I wanted to ask here, if it is possible to take a main composition and only do a file/collection of this composition, objects and elements that serve there (the last I made on my account at least, with the elements used on that, because I think that there are many (if not a large part of them) files and elements that are not used in the final version, as scenes of the version beta of my work, the problem is the composition is too long and have a lot of different archives or drop movies then it could take forever to do it manually...

    Thanks for reading me! I hope that this is a solution...

    It's a two-step process:

    1. reduce your project to the desired composition.

    2 recover your files.

  • Identify a tablespace that is not used in the database

    Hello

    How to find the tablespace that is not assigned to any user? Note that I have a table partition in which there is table space where the records will be placed in the future based on the requirement on this partition table. I gave the unlimited tablespace on these tablespace privilege for the user. How to find storage space that is not used at any time in the database?


    Kind regards

    007

    007 wrote:
    Hello

    How to find the tablespace that is not assigned to any user? Note that I have a table partition in which there is table space where the records will be placed in the future based on the requirement on this partition table. I gave the unlimited tablespace on these tablespace privilege for the user. How to find storage space that is not used at any time in the database?

    Kind regards

    007

    According to my understanding of your question

    To check the quota on the tablespace use query below:

    SELECT * FROM dba_ts_quotas WHERE username = "XXXX";

    to check the default tablespace use the following query:

    Select USER_USERS from dba_users where username = 'XXXX '.

    How to find storage space that is not used at any time in the database?

    Use view dba_data_files for space used for the tablespace.

    I hope this help you

    Neeraj-

    Published by: Virginia October 22, 2011 14:35

  • Delete all groups and layers that are turned off, even if they are locked

    Hello

    I need help with a script that will do the following:

    Delete all groups (including the layers inside) and layers so they are not visible - with the following requirements

    a. even if the group or layer is locked

    (b) even if the layers within the group are locked

    c. same layers within the group are visible, although the parent group is off

    Then... the required logic would be

    Is it group or layer turns off? Yes, then delete all independently of any other thing, OTHERWISE move on to the next layer/group

    Basically, I have a lot of groups and layers here and I want to analyze the layers to leave just the layers that are visible in the final document. Visible merge or flatten the will does not work as I want to keep visible and visible layers. Layers remove hidden does not work. And file/scripts/deleting empty layers does not work because the layers are not empty. They are simply not necessary.

    In collaboration with CS6.

    Thank you

    The other is round, but this should unlock all layers, after that delete hidden layers should work.

    // unlock all layers;
    // based on code to link layer masks by paul riggott;
    // 2014, use it at your own risk;
    #target "photoshop-70.032"
    app.bringToFront();
    if(app.documents.length != 0) {
      unlockLayers();
      };
    ////// unlock layers //////
    function unlockLayers(){
      var ref = new ActionReference();
      ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
      var count = executeActionGet(ref).getInteger(charIDToTypeID('NmbL')) +1;
      var Names=[];
      try{
      activeDocument.backgroundLayer;
      var i = 0; }catch(e){ var i = 1; };
      for(i;i		   
  • I'm trying to restore a deleted from iTunes purchase? It is said that purchase that it does not DOWNLOAD when I go to see my purchase that are not on my iPhone.

    I'm trying to restore a deleted from iTunes purchase? It is said that purchase that it does not DOWNLOAD when I go to see my purchase that are not on my iPhone.

    If its not displayed in the tab purchased in the iTunes store app (audiobooks and tones will not appear, they are only unique downloads of the store) and check if you have hidden it cloud: mask and unmask purchases iTunes or iBooks on your Mac or PC - Apple support

  • How to delete contacts that are not in my contact list.

    I have contracts that are not in my contacts list, but when I press on to and simply start typing the email arrives and I really need to get off my hotmail which are the most to my list of contacts of people I need to unlocked then remove them. Please help I tried the arrows and highlighting but nothing not working

    Please ask in the appropriate forum.

    Windows Live Mail Forum
    http://windowslivehelp.com/forums.aspx?ProductID=15

Maybe you are looking for