contracts and extend layer groups

Good morning, good night to all. I have a question that I couldn't yet solve. Can we contract and expand groups to layers in Photoshop through extendscript code?

Hola, buenas noches a todos. Tengo una pregunta Québec no he could aun did. SE pueden getting y grupos Extender of capas en Photoshop mediante extendscript code?

Hello

See the texts of buliarca tools of BCM and search for "BCM08 > ToggleOpen_CloseGroup...» »

Concerning

Davide Barranca

---

www.davidebarranca.com

www.cs-extensions.com

Tags: Photoshop

Similar Questions

  • Is there a way to loop through the properties of a layer groups and JUST get those that are visible?

    Hello

    I'm trying to get just the property groups that are visible to a layer in my script. Is there such a property?

    For example, when I loop through groups of properties of a shape layer, I get masks, layer, surface Options and Audio property groups Styles, when none of these are appropriate. I tried to use the (.elided) property, but it gives me just the 'Content' hidden folders within the groups of vector and 'Masks' in 'membership Options '.

    * on a side note, I got the error "not"adjustable expression"with this property, because the property is a property of the parent is hidden." When you try to access X or Y Rotation on one layer 2D. It makes it seem like there is somewhere a Boolean value 'hidden' in the property object, but I can't.

    Hello

    'elided' and 'hidden' both have purpose UI (make the lighter user interface) but are very different:

    • 'j' is a static property groups attribute (readonly, and After Effects never becomes the value internally).

    The children of an elided group are not necessarily élidés.

    • 'hidden' is NOT an attribute, is dynamic and "undocumented".

    The UI of effects after mask everything that is not necessary in the layer property tree (for example the Group of hardware options is hidden when the layer is not 3D, because it is not used anyway).

    Properties and masked groups are always there and is accessible by script, you can read their values and attributes, Scout their subtree of property, but we cannot define anything on them or select them (in both cases, that an error is generated).

    And the children of a hidden group are hidden.

    Since there is no corresponding to 'hidden' attribute, it is uncomfortable to know whether or not a property is hidden. I only see one case of 'treatment '.

    For example:

    myLayer.layerStyle is hidden? <===>! myLayer.layerStyle.canSetEnabled

    myLayer.transform.xRotation is hidden? <===>! myLayer.transform.xRotation.canSetExpression

    myLayer.mask is hidden? <===>myLayer.mask.numProperties = 0

    myShapeLayer.content is hidden? <===>fake (never hidden, even if it is empty)

    etc...

    Xavier.

  • Why are the boundaries of the layer or layer groups not that of the document?

    Why are assets the whole layer or a layer group rather than be only clipped on the canvas, I'm working on that?

    The limits of a resulting asset layer or layer group are all of the area occupied by the pixels of the layer or layer group. This is how the underlying infrastructure Adobe generator works. We are studying the feasibility of changing this behaviour. If you want it changed, please let us know here!

    If you want to restrict to the linked document, apply a layer mask that écrêtera layers and groups of layers that extend beyond the limits of the document.

  • Layer/group layers in PSE14?

    I'm working through some tutorials in a book called "Layers of Photoshop." It's good, but outdated or inappropriate for PSE14
    .

    He speaks in selecting layer/group layers to organize layers into folders. Is there an equivalent function in PSE14?

    Thank you.

    TromboneAl wrote:

    I'm working through some tutorials in a book called "Layers of Photoshop." It's good, but outdated or inappropriate for PSE14
    .

    He speaks in selecting layer/group layers to organize layers into folders. Is there an equivalent function in PSE14?

    Thank you.

    No, layer groups are not available in PSE14, but you can retrieve this function with a module external elements + (very affordable).

    On the elements.

    Go to the section layers and find the Group and ungroup layers scripts.

  • How to convert all layer groups

    Hi all

    I have a huge file with several groups containing each mutiple subgroups containing... you guessed it, many other groups.

    I need to convert every single file group to a layer and follow the same order (groups, subgroups and so on) to make this design usable and editable.

    Unfortunately, I have zero skills in programming or JS.

    Has anyone faced the same problem? I'm looking for a script which create layers, name them and transfer the content automatically into the appropriate layer. It would be just w-a-a-a-a-y-y-y long do it manually because the file contains more 20 000 forms (most I have several other files that I need to convert the same way).

    Any help would be much appreciated!

    Thank you

    OK, give it a try. It works best if you start with only 1 layer and this layer has only groups within higher level.

    #target illustrator-19
    function test(){
        var doc = app.activeDocument;
        var originalLayer = doc.layers[0];
        var newLayer, thisGroup, thisContent;
        for(var i=originalLayer.groupItems.length - 1; i > -1; i--){
            thisGroup = originalLayer.groupItems[i];
            newLayer = doc.layers.add();
            newLayer.name = thisGroup.name;
            for(var j=thisGroup.pageItems.length - 1; j > -1; j--){
                thisContent = thisGroup.pageItems[j];
                thisContent.move(newLayer, ElementPlacement.PLACEATBEGINNING);
            };
        };
        app.redraw();
        if(originalLayer.pageItems.length == 0){
            originalLayer.remove();
        }
    }
    
    test();
    
  • Hi, my photoshop won't allow me to select layers with my mouse, I have to go to each individual layer on the side to select. On the computers at my school, I was always able to select a layer group to the right of the file I'm working on that. Having

    Hi, my photoshop won't allow me to select layers with my mouse, I have to go to each individual layer on the side to select. On the computers at my school, I was always able to select a layer group to the right of the file I'm working on that. Have to go to the layers panel and select each layer one is really long time and not effective - what do I do to fix this?

    Hi Cartere49372123,

    I hope you do well.

    Please check this link below and see if it helps

    http://www.photoshopessentials.com/basics/layer-shortcuts/

    Concerning

    Rohit

  • How to get the current layer type (text, art, layer group, etc.).

    Hi, I'm traveling on all layers using layerIndex. I can get current name later following the path. char * NomCouche = new char [100]; Int32 len = 100; PIUGetInfoByIndex (layerIndex, classLayer, keyName, NomCouche and len); I tried to use the keyType and sound in the same way, but I'm not able to get the type of the layer directly. Why? Also, I found a similar discussion, check the layer is SectionStart, SectionEnd or SectionContent. Get plugin C++ layer groups if the layer is a 'SectionContent', how I have in addition to check its type (textlater, adjustmentlayer, artlayer, ect)?

    Ok

    Later, I noticed that the value of a layer type is int32.

    Int32 layertype = 0;
    DescriptorTypeID runlayertypeKey = 0;
    sPSActionControl-> StringIDToTypeID ("layerKind", & runlayertypeKey);
    error = PIUGetInfoByIndex (layerIndex, classLayer, runlayertypeKey, & layertype, NULL);
  • Cannot open a layer group in 13 items

    I'm trying to open a layer group in 13 elements but get the following error message: "you are trying to open a group which is not supported in photoshop elements" then it prompts to simplify all the layers in a layer.  It's useless!  How to do this?  This is a fairly simple feature and would think that Photoshop Elements can handle.  Yes, I have the version of the complete software, not the trial version.

    See also:

    http://www.elementsvillage.com/forums/showthread.php?t=77439

  • 2014 CC Photoshop crashes for almost 15 seconds, when using layer &gt; Group layers or Layers Palette &gt; layers command group.

    Photoshop crashes for almost 15 seconds, when using layer > Group layers or Layers Palette > layers command group. NOT on creating new group and creation of layers and n-drag-drop group manually in the Palette layers. Got a file of user interface design with close to 800 layers and lots of groups. This doesn't happen in smaller files. Using OS X Mavericks, Photoshop, CC 2014.2.2, mi 2014 15-inch Macbook Pro Retina.

    I understand that the solution would be just to cut the file into smaller files and design each display of the user interface in a separate but file which would be painful. And it doesn't seem to be a very difficult task to just the layers in group.

    OK, the first thing to try: disable the generator in the preferences of hiking (under Plug-Ins, at the top).

    On my system, generator never took and a week to read information on all layers and is particularly slow on text layers.

  • How to activate the movement of tools toggle the layer/group off

    Update photoshop today and the command key, which allows use of select lock when it is used with the tool moving, is become a rocking/layer group. Hot damn, this really screws with years years of muscle memory with this tool. Is it possible to return it to the way it used to have it function?

    This topic was brought up a little bit in the poast weeks, while many users encounter this same problem.

    I seems to me that the interim solution is to hold down the 'V' instead of command. Just treat the keystroke 'V' exactly the same way you treat the "Command" key... in other words, hold the V key, click anywhere in your document to select your layer, then release V.

    It is the landmark until Adobe fixes the bug

  • Rename the layer, group, Javascript object

    Hey guys,.

    I am writing a script which renames a layer and the group within the layer, then an object in the layer (but is not part of the Group) and have it executed in a loop.

    This is what I have so far, change of group name does not work.

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc)//IRename layers
    idGroups(doc)//Rename groups
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            doc.layers[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    
    function idGroups(doc){
        for(i=0;doc.groups.length>i;i++){
            doc.groups[i].name= 'id:GTM_Group '+(i+1)
            }
        }
    

    I got into anthing to rename the single object still since I can not even rename it group work. I suspect that the new group name section does not work because I'm either using the incorrect syntax or a command that is not valid. Any ideas?

    (Attention to groups hidden within the transparent traces or other groups because it will find and rename these groups as well.

    to avoid dealing with groups (or objects) within the groups, not loop through all elements in the document, reference your articles by layers

    #target Illustrator
    
    var doc = app.activeDocument;
    
    idLayers(doc); // Rename layers
    
    function idLayers(doc){
        for(i=0;doc.layers.length>i;i++){
            var currentLayer = doc.layers[i];
            currentLayer.name= 'id:GTM_Layer '+(i+1);
    
            idGroups(currentLayer); // Rename groups
            idPathItems(currentLayer); // path items
        }
    }
    
    function idGroups(layer){
        for(j=0;layer.groupItems.length>j;j++){
            layer.groupItems[j].name= 'id:GTM_Group '+(j+1)
        }
    }
    
    function idPathItems(layer){
        for(k=0;layer.pathItems.length>k;k++){
            layer.pathItems[k].name= 'id:GTM_Path '+(k+1)
        }
    }
    
  • What is the cheapest version of Photoshop that supports layer groups?

    ?

    Only the 'big' PS gets layer groups, and so a subscription app unique creative cloud for CC PS would be 'cheaper' option.

    Mylenium

  • Is it possible to import a layer group into a project to another project?

    Hi all

    I am currently using after effects 5... Yes it is version 5, not CS5.

    I'm trying to figure out if I can import a layer group and their applied effects in another project while keeping all the editable attributes and positions of the imported layers with respect to one another.

    I see that I can import an ASP project file into another project through the FILE to be IMPORTED, but just, which brings the raw project window files/layers and don't place no layers in the timeline with all their positions, the effects and the edited attributes, how I had like.

    Also tried to previously compose the layer, but who did not leave their editable once a demo was made... just makes the 7 layers I want to import in to another project all one layer and not let them be changed the way the 7 layers are separately.

    In Adobe Premiere, there is a real ' IMPORT the PROJECT ' selection under IMPORT that allows me to import an entire project in another project and allows me to place the imported project where I want in the new project editing... that's what I try to do in After Effects.

    I realize that there may be a way easy to make it in one of its latest versions of After Effects and the other may say, 'just buy the new AE CS5', but I figured out allot of things on my own so far and I love after effects 5 for what I do now... maybe later on the newer version.

    Thank you for any input,

    Digi

    Just import the source project in the new project.  Open the original composition, select the layers you want and copy.  Then, open the new composition and paste.

    If you want to be really ordered on this subject, you can make a temporary version of the source project that contains only the layers you want to move to the new project.  Import this temp project to the new, then you can delete the temp project.

  • Apply the adjustment layer to a layer group

    Is there a method to apply an adjustment layer to a layer group?

    I have a curtain on a layer of a Photoshop CS4 document.

    I have reproduced the curtain twice and repositioned the copies.

    Now, I would like to use an adjustment layer to change the color of my curtains without affecting the rest of the composition (and I can't move the curtains down because they need to sit above other elements).

    I tried to bring my 3 layers of curtain set, then applygin an adjustment layer > hue > colorize - but that affects the entire composition.

    When the layers are grouped, holding ALT while hovering between the adjustment layer and the group does not have the special icon that allows you to apply the adjustment to the layer below.

    Would be apprecaiate andive on how to apply an adjustment layer to a layer group.

    (I can go back and apply my adaptation to the original curtain can reduplicate and reposition, but would have to repeat this procedure every preference change color).

    Thank you?

    Put your layers into a folder and change the mode to normal fusion of records through. You can then put an on the top layers adjustment layer in the file, and this will not affect what is located in the folder.

  • I do my job to the computer on a MAC computer. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open t

    I do my job to the computer on a MAC book PRO. I want to create a document using Pages and then convert the document to PDF and send a group email. I want to send the PDF using the pdf for each receiver icon must click the icon to open the document. My problem is the document does not show the icon, but rather the document is already open. I spoke with 2 Apple. 'Experts' care and can help me. Can someone tell me what to do?

    It's a question of how the recipients e-mail programs deal with attachments. Many e-mail programs will open all the files they can handle, including files jpg and PDF, by default, and if the recipient has not changed that there is nothing you can do about it. The only solution is to the compress first, then it will be delivered as an attachment, allowing the recipient to decompress and open it.

Maybe you are looking for