New Document with Layer Comp & Groups Link ?

I'd like to create a script that creates a new photoshop document that automatically creates a set of layer comps with specific names that are linked with groups with identical names or the same name. I don't know whether to create this in Adobe Configurator but since I want to create a 'new' document that does this automatically I don't know if Adobe Configurator is the best route to go ?
An added bonus it would be benifical to select the layer comp, and save only the selected layer comp or an option to save the entire composition or a layer comp.

What good are Layer Comps that show Groups if one is to add Layers only
later on or should Layers in the Groups be created right away?
In Photoshop when you create a new document File -> New it would create the following layer comps and layer groups.
The layer comps would be linked to the layer groups with the same name or identical name if allowed, for example if the Layer Group name is not Layer Comp A, rather CompyDesignA the script would know to still link it to Layer Comp A.
I don't know how many layers I would add to the layer group so the script wouldn't create these layers, the script would then export the layer comp with the selected layer group.
For example, I select Layer Comp A which is tied to the Layer Group, Layer Group A / or similiar name if I select the layer comp Layer Comp A it would know to save only the Layer Group 'Layer Group A / or similar name' automatically, with the option to save the entire composition with all layer comps and all layer groups, understand ?
I suppose that upon creating the new composition/document each layer group would have a layer created called 'background' and the first layer created above that background layer would have a screen blend mode applied, automate the task.

Similar Messages

  • JS - Center Selection to Artboard / New Document with certain Artboard size

    TL;DR:
    how do I center my current selection to the artboard?
    just like hitting the "horizontal align-center" and "vertical align-center" buttons.
    Hi,
    I've been searching for the last two hours and before my head hits the keyboard I wanted to ask you for help.
    What I'm struggling with:
    in my init function i create a new document and then copy all layers from the previous document step by step to the new document and then save it as SVG.
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              holderDoc = app.documents.add();
              stepThroughAndExportLayers(docRef.layers);
    my problem is that holderDoc = app.documents.add(); always creates a document that is not the same size as my initial document where the layers get copied from.
    so I want the exact same artboard size as in my initial document.
    I'm fine with either doing it as fixed values or taking directly the values of the inital doc.
    i tried this in the segment where I create the new document:
    // Init
    (function(){
      destination = Folder.selectDialog('Select folder for SVG files.', docPath);
      if (!destination){return;}
      holderDoc = app.documents.add();
      holderDoc.artboards[0].artboardRect = [0,0,128,128];
      stepThroughAndExportLayers(docRef.layers);
    and get this error message:
    "Error 1200: an Illustrator error occured: 1346458189 ('PARM')
    Line: 83
    -> holderDoc.artboards[0].artboardRect = [0,0,128,128];"
    which from what I've read on the web means that illustrator doesnt know what document to pick. but i have called it directly. so what could be the issue?
    to clearify: I do not want to fit the artboard to the images/layer. the artboard should always have a certain size. (for me 128px by 128px)
    I would highly appreciate you helping me with either fixing my approach or propose a completely new one.
    Thanks so much in advance.
    // edit: workaround
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              holderDoc = app.documents.add();
              holderDoc.artboards.add(ABRect);
              holderDoc.artboards.remove(0);
              holderDoc.artboards.setActiveArtboardIndex(0);
              //stepThroughAndExportLayers(docRef.layers);
    i now added a new artboard to the new document with the same size as the artboard on the initial document.
    i remove the predefined artboard on the new doc and set the new artboard as active.
    BUT!
    the artboard is now not centered into the window. which lets illustrator place my image with ctrl+c -> ctrl+v somewhere outside the artboard.
    i now need to align my selection to the center of the artboard. but i cant find any reference on how to center a selection to the artboard.

    yes of course. i never modify the author's comments in original scripts.
    but I wont post the script anywhere when it doesnt work anyway haha.
    this is what I've done now:
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              // create new document with same artboard as original
              holderDoc = app.documents.add(DocumentColorSpace.RGB, new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"), new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"));
              stepThroughAndExportLayers(docRef.layers);
    in order to create the new document with the same dimensions as my orignal doc, I first read the artboardRect dimensions of the current artboard and then create the document with those values passed as parameters. the calculation is to get the real width since artboardRect gives you left,top,right,bottom values and not just height and width.
    this only works for square formats though. to make it properly you'd have to change the second "new UnitValue" to use the top and bottom values of artboardRect but I currently dont need to do so.
    * Layers to SVG - layers_export.jsx
    * @version 0.1
    * Improved PageItem selection, which fixed centering
    * @author Anton Ball
    * Exports all layers to SVG Files
    * I didn't want every layer in the SVG file so it first creates a new document
    * and one by one copies each layer to that new document while exporting it out
    * as an SVG.
    * TODO:
    * 1. More of an interface wouldn't hurt. Prefix option and progress bar of some description.
    // Variables
    var docRef = app.activeDocument,
              docPath = docRef.path,
              ignoreHidden = true,
              svgExportOptions = (function(){
                        var options = new ExportOptionsSVG();
                        options.fontSubsetting = SVGFontSubsetting.GLYPHSUSED;
                        options.embedRasterImages = true;
                        options.fontType = SVGFontType.OUTLINEFONT;
                        return options;
              destination, holderDoc;
    // Functions
    var stepThroughAndExportLayers = function(layers){
              var layer,
                        numLayers = layers.length;
              for (var i = 0; i < numLayers; i += 1){
                        layer = layers[i];
                        if (ignoreHidden && !layer.visible){continue;}
                        copyLayerTo(layer, holderDoc);
                        // Resize the artboard to the object
                        selectAll(holderDoc);
                        exportAsSVG(validateLayerName(layer.name, '-'), holderDoc);
                        // Remove everything
                        holderDoc.activeLayer.pageItems.removeAll();
              holderDoc.close(SaveOptions.DONOTSAVECHANGES);
    // Copies the layer to the doc
    copyLayerTo = function(layer, doc){
              var pageItem,
                        numPageItems = layer.pageItems.length;
              for (var i = 0; i < numPageItems; i++){
                        pageItem = layer.pageItems[i];
                        pageItem.duplicate(holderDoc.activeLayer, ElementPlacement.PLACEATEND);
    // Selects all PageItems in the doc
    selectAll = function(doc){
              var pageItems = doc.pageItems,
                        numPageItems = doc.pageItems.length;
              for (var i = 0; i < numPageItems; i += 1){
                        pageItems[i].selected = true;
    // Exports the doc to the destination saving it as name
    exportAsSVG = function(name, doc){
              var file = new File(destination + '/' + name + '.svg');
              holderDoc.exportFile(file, ExportType.SVG, svgExportOptions);
    // Makes sure the name is lowercase and no spaces
    validateLayerName = function(value, separator){
              separator = separator || '_';
              //return value.toLowerCase().replace(/\s/, separator);
              return value.replace(/\s/, separator);
    // Init
    (function(){
              destination = Folder.selectDialog('Select folder for SVG files.', docPath);
              if (!destination){return;}
              var activeArtboard = app.activeDocument.artboards[app.activeDocument.artboards.getActiveArtboardIndex()];
              var ABRect = activeArtboard.artboardRect;
              // create new document with same artboard as original
              holderDoc = app.documents.add(DocumentColorSpace.RGB, new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"), new UnitValue ((Math.abs(ABRect[0]-ABRect[2])), "px"));
              stepThroughAndExportLayers(docRef.layers);

  • How to create a new document with a given theme, instead of choosing it every time.

    Hi,
    for work I only use a custom made keynote theme.
    I've already deleted all the default themes, and the only one that is listed in the app is the one I actually use.
    However every time I create a new document I have to chose its theme (that's normal having plenty of themes, but in my case is just a waste of time).
    I was wondering if there's a way to tell keynote to start a new document with a given theme, in order to avoid to chose it every time.
    Thank you for reading and for the help you will give.
    Giacomo

    Keynote > Preferences > General tab
    select “Use theme,” and then click Choose to select a theme.

  • Create a new document with settings appropriate for SWF or XFL output.

    I'm studying up for the CS4 ACE exam, and I'm stumped on something. In the "Laying out a Document" section, it says: "Create a new document with settings appropriate for SWF or XFL output." There isn't really anything specific to creating a document for flash, except that you wouldn't add bleed. I can't find anything online that addresses this. Am I missing something here? Any document can be exported to SWF or XFL. This seems rather ambiguous. What is there to know about this?

    You're right that any document can be exported to SWF or XFL. I'm not sure what you're going to be asked on the ACE exam, but here are some resources:
    Help topic:
    http://help.adobe.com/en_US/InDesign/6.0/WS2DECDF40-B6DA-40b6-804F-2703D6C6A460.html
    Tim Cole's first of 3-part series:
    http://blogs.adobe.com/indesignchannel/2008/11/indesign_2_flash_part_i_1.html
    My blog entry:
    http://blogs.adobe.com/indesigndocs/2009/03/exporting_interactive_indesign.html

  • Photoshop in the wake of Origami - Interaction design control with Layer Comps? We need this. That is all.

    It'd be nice if we had some more utility with layer comps. They're still a standard workflow for a lot of designers, QC/Origami is difficult to learn, especially for an entire team to get up to speed on. Is there a chance Adobe will ever integrate something like this (video export) of layer comp flows? Or is there something currently that I'm missing?

    If this is supposed to be a Feature Request please post over on
    Photoshop Family Customer Community
    And you may want to explain what "QC/Origami" is exactly.
    Also if this is concerns video editing/creation you may want to look into proper video editing software.

  • Does Photoshop CS5, 6, or CC allow slicing with layer comps?

    I love the layer comps feature. It's a huge time saver and allows me to keep my files sizes smaller.
    One thing I just noticed since I normal hand off my PSDs to a developer is that the slices don't save with each layer comp. Is there any way to make this possible with CS5, 6, or CC even? It'd be a huge time saver and really helpful. I currently use CS5 at work, but I have CC at home.
    Thanks for your help!
    -Joe

    Personally, if I were in your shoes I would subscribe to the CC photographer bundle. It sounds like you're really ready to jump into it with a great new camera so why learn and work in an outdated application?
    Don't get me wrong . . . I have CS5 also, but I got the photographer bundle because it's such a great deal and I love always having the very latest version of PS. I should also emphasize that the bundle includes Lightroom, which will be invaluable to you as a photographer.
    In summary, PS CS5 is still a great app but it's reached "end of life." Photoshop CC on the other hand is always being updated . . . at no extra cost. Camera Raw for PS CC, for example, is currently at v. 8.7.1. Whenever you might read about some great new feature in PS you can check it out at lynda.com and rest assured that you will have access to it when you update. There is one caveat: you don't say what you have for a computer and OS but you want to be sure to check system requirements for PS CC: System requirements | Photoshop

  • Copy contents of 2 layers to new document with javascript

    Hi guys !
    Basically i have created a new cutfile generator for a Zund cutting machine we have here at work i have got it to the point where i can create a Registration mark layer and Cut layer now i would like to save this as a layered PDF as this is how the cutter software prefers it. What i would like to know is how with Javascript can I copy the contents of "Regmark" layer and "Cut" layer to a dynamically created new document ? Any thoughts on this will be greatly appreciated thanks so much !
    Regards,
    Bass

    Hi guys,
    Just something i forgot to add, the follow piece of code copies content of "Regmark" layer to new document but its going back and selecting contents of "Cut" layer i am unable to do thanks once again !
    var sourceDoc = app.activeDocument;
    sourceDoc.select(sourceDoc.layers.item("Regmark").pageItems)
    app.copy();
    var destinationDoc = app.documents.add();
    app.pasteInPlace();
    /* NEED SOMETHING HERE TO TAKE ME BACK TO sourceDoc */
    sourceDoc.select(sourceDoc.layers.item("Cut").pageItems)
    app.copy();
    /* ONCE AGAIN SOMETHING TO TAKE ME TO destinationDoc */
    app.pasteInPlace();
    I know im probably going about this all wrong but it's the only thing i can figure out from looking on forum and JS help thanks so much !
    Regards,
    Bass

  • Ilustrator freezes creating a new document with web profile.

    Hi,
    I have the illustrator instalation from creative cloud subscription and everytime i create a new document and on the profile combo choose "web", the illustrator freezes forever.
    Im using mac version in a macbook pro 13" corei7 with 8gigs ram.

    I'm having the same issue with i7 2500k, SSD, 16gb ram, 6870 2gb vram 10.7.4.
    Anyone have any idea if i can get a crash report to help you guys out with figuring this?
    Basically whenever i go -> new and change the document profile to web (or a few others) it just LOCKS and needs to be force quitted.
    I've also just ran with the default and it locks up anyway.    

  • Creating a new document with columns and printing effects

    If you create a new document and set columns into it in the new document menu, and then subsequently create images, tables, text etc. in the document that are bigger than one column (that stretch for example across the entire page), will the part of the image that's in the gutter print and/or show up if it's saved as a PDF?
    Help!
    Thanks!

    Guides are only there as a reference for you to help in alignment.They don't restrict what or where objects can be placed or affect their visibility or printability.
    To see what your page will look like in print, switch to Preview Mode (fast way is to press W with nothing selected).

  • Creating a new document with separate images

    Can someone help me create a new document that has two separate images. I can create a new document but don't know how to place two separate photos in the document. For instance create a document that is 8.5 x11 with two images each 8.5 x 5.5.

    there is a number of ways to do this. also reading the manual to get a basic understanding of how Photoshop works will do wonders. Another method of learning is lynda.com
    here is one way.
    1 make a doc that is 8.5 x 11 at whatever resolution you need.
    2 use a guide as a center point.
    3 open the two pics you want to use.
    4 make sure they are the same res as your 8.5 x 11
    5 drag the layers from the open pics to the 8.5 x 11
    6 crop and size the pics in the file so they fit in each half

  • Setting english as the default language for a new document with arabic version of CC apps

    first off, appologies for the screen name, the name i'm sure i had registered before with account was suppose dot be looged in as was barred, so i used this in frustration.  Read the book, The Etymologicon to learn more.
    and another note.  why is the font size in the subject on this form gigantic? intentional of cockup?
    Now, to the point.
    Please please enlighten me, I'm sure it's simple but i can't find the answer and have been haphazardly ploughing the net for half the night.
    I have installed the Arabic langauge version of CC software becuase i need to do a lot of bilingual layouts.
    But
    I generally use, and start with english, but the defualt new document is always set to all the arabic settings, which is a nightmare.
    How do i make english the defualt type (and all the paragraph and language options) while retaining the functionaility of arabic version. 
    I've found instructions for CS2-6 but nothing remotely sensible about CC, and presume i'm missing something really really obvious.

    Hi,
    Here you have some interesting tutos about foreign languages in LV :
    Localizing Your LabVIEW Application to Different Languages
    Localize LabVIEW Applications in Multiple Languages
    Let me know what happens.
    Regards,
    Message Edité par Steve Mohamed le 02-27-2009 09:02 AM
    Steve M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> Vidéo-t'chats de l'été : présentations techniques et ingénieurs pour répondre à vos questions

  • Closing a new document with textvariable

    1. In Indesign CS4 version 6.0.2 ,
    if I create a new document and insert a textvariable, I can save the document and I can close it.
    2. In scripting Indesign CS4 version 6.0.2 with VB.net (Visual Studio 2008 + Framework 3.5),if I open a document manually created under Indesign CS4 version 6.0.2 with a textvariable, I can save the document and I can close it.
    3. In scripting Indesign CS4 version 6.0.2 with VB.net (Visual Studio 2008 + Framework 3.5),if I create a new document and insert a textvariable, I can save the document, but I can't close it. Indesign give a win32 error.
    MyPub = myIndesign.Documents.Add(False)
    MySpread = MyPub.Spreads.Item(1)
    myTextFrames = MySpread.TextFrames
    MyInfos = myTextFrames.Add
    Dim FileNameVariable As InDesign.TextVariable = Nothing
    For Each Item As TextVariable In MyPub.TextVariables
          If Item.VariableType = idVariableTypes.idFileNameType Then
                   FileNameVariable = Item
                   Exit For
         End If
    Next
    Dim FileNameVariableInstance As InDesign.TextVariableInstance = Nothing
    FileNameVariableInstance = MyInfos.TextVariableInstances.Add(idLocationOptions.idAtBeginning)
    FileNameVariableInstance.AssociatedTextVariable = FileNameVariable
    MyPub.Save(FullPath)   'OK
    MyPub.close               'Error Win32 in Indesign.exe
    I try to save the document before creating the FileNameVariableInstance but it's the same result.
    Do you know a way to do it ?
    Regards

    After searching a lot I have finally found the solution :
    MyPub = myIndesign.Documents.Add(False)
    MySpread = MyPub.Spreads.Item(1)
    myTextFrames = MySpread.TextFrames
    MyInfos = myTextFrames.Add
    Dim MyVars as Indesign.TextVariables = MyPub.TextVariables
    Dim FileNameVariableInstance As InDesign.TextVariableInstance = Nothing
    FileNameVariableInstance = MyInfos.TextVariableInstances.Add(idLocationOptions.idAtBeginning)
    FileNameVariableInstance.AssociatedTextVariable = MyVars.item(8) ''index of the textvariable equals to idFileNameType
    MyPub.Save(FullPath)   'OK
    MyPub.close               'OK

  • BUG? - Vector shapes move after when resizing PSDs with layer comps.

    I use layer comps to show different interaction steps through my designs.
    Designing mostly for mobile, i create at @1x (72 Pixels/Inch) resolution, and then scale up to @2x (144 PPI) and @3x (216 PPI) to get my assets for higher resolution devices.
    However when i scale the PSD, all vector shapes within it offset themselves by one pixel up and to the left for @2x resolution and two pixels for @3x resolution, meaning all my careful alignments go out the window. Raster elements and text fields behave as they should and do not shift.
    All my vectors shapes are bang on the the pixel to begin with so that's not a factor, and the scaling is a multiple so again that isn't the cause either.
    You can see the issue in the image attached.
    The obvious white edges along the right and bottom edges are revealed after the scale and layer comp change as the shapes shift.
    The bitmap layers equivalent on the right are fine.
    You can try it for yourself by downloading this PSD...
    http://neonstate.com/scale-layer-comps-test.psd
    1. Open the file
    2. Change the resolution by going to Image / Image Size and entering 144 or 216 as the resolution.
    3. Step through the layer comps, you'll see after the first layer comp is changed that the vector shapes shift, affecting all layer comps.
    I'm sure this didn't used to happen, but what it means is I can no longer use this technique.
    I'm using Photoshop CC 2014.2.2 / 20141204.r.310 x64
    Any help much appreciated.
    Rob

    Hi again,
    The purpose of this checkbox in the Layer Comp settings is to remember the positions of items, if you turn it off then you can save the positions which defeats the point a bit.
    I've created another example to better explain - http://neonstate.com/scale-layer-comps-test-reposition.psd
    If you step through the layer comps you'll see the shapes move from one position to the next, i've set these positions specifically.
    Now change the resolution to 144 or 216.
    Everything looks fine until you step through the layer comps - the boxes change position as they should, but the vector ones are incorrectly offset to the top left.
    Rob

  • Saving Smart Filter Settings with Layer Comps

    Have attempted to save various smart filter setting combinations for a stack of smart filters using Layer Comps but all layer comps default to the same smart filter setting regardless of the setting when the layer comp was created.
    Consider changing Layer Comps be to save the smart filter settings also.

    This is exactly what we're having trouble with right now! Adobe Send Ideas, please update and/or fix this soon!

  • Can I create a new document with a locked PDF file, add new pages, and lock it all again?

    I published a PDF document ten years ago and now want to add Creative Commons licensing language to the copyright page.  But I forgot the password!  I gather from the Forum that there is no way to recover the password.  However, I wonder if I can take the locked PDF file, create a new document (adding a new page for the licensing information), then lock the whole thing up again.  Will this work?  Thanks for your help!                                                                               

    To create an unprotected file you would need the password.

Maybe you are looking for

  • Lower PDf graphics quality after upgrade from v8 to v9

    Some PDF Graphic quality is poorer whne using the new Acrobat compared to version 8. I recently purchased Acrobat 9 Pro extended as part of the TCS2 and installe dhtis on a new machine. The installation replaces Acrobat 8 professional installed on a

  • Metadata exception in Oracle 10g

    Hi, I am getting the following error when executing the following piece of code: ResultSetMetaData rsmd = pstmt.getMetaData(); rs = pstmt.executeQuery(); the error is: [1/20/10 5:43:46:479 CST] 0000001e SystemErr R java.sql.SQLException: statement ha

  • PHP service super-class regeneration

    Hello all ! I need your help with a strange problem.. In my Flex project, I have PHP files with the services automatically generated (the two .as files). My  problem is that one : When I modify my PHP file and click on the  refresh button (in the tre

  • White background dashboard??

    HI THERE!! Does anyone know why my dashboard looks like that after upgrade to Maverick?? (Macbook pro 13" I7 late 2012) v.10.9.1 how can i fix it?? Many thanks in advice!!

  • No NAT convertion to 9.x from 8.0 question

    I had something like this on the 8.0 nat (inside) 0 access-list 100 access-list 100 extended permit ip 10.239.1.0 255.255.255.0 10.239.125.0 255.255.255.0 access-list 100 extended permit ip 10.239.1.0 255.255.255.0 10.239.126.0 255.255.255.0 access-l