Automatic set of layers in new documents

Here’s a script, which automatically creates a set of layers with predefinded names in a given order when you create a new document. And that’s how it works:

  1. Download and unzip the file “Automatic_Layer_Set_v1.zip
  2. Copy the whole Folder (important!!!) to the startup-scripts-folder of InDesign. Where you find this folder is explained in this pdf-file.
  3. Close and restart InDesign

In the folder “Automatic Layer Set v1″ you will find to layer-set-example-files. You can easily edit those with the texteditor auf your choice. Attache, edit or delete the layers to your liking. You can also easily create new layer-sets! It’s only important that it is a plaintext-file with the ending “.txt” in the folder of the script.

The script has two modes:

  1. The folder “Automatic Layer Set v1″ contains just one file with the ending “.txt”:
    This layer-set will be considered on creation of a new document

    Layer_Set_2
  2. The folder “Automatic Layer Set v1″ contains multiple files with the ending “.txt”:
    After pressing the “OK”-button in the “New Document”-dialog a dropdown-menu appears, where you can choose from the layer-sets. If you click “Cancel” a document with the good known “Layer 1″ will be created.

    Layer_Set_1

If anybody should be more comfortable if the layer-set-choose-dialog would be in German, just edit the filename of the script from “Automatic_Layer_Set_v1_en.jsx” to “Automatic_Layer_Set_v1_de.jsx”. Then the dialog appears in German.

Once more the download-link of the script: Automatic_Layer_Set_v1.zip

Please write your feedback in the comments! Any idea of improvement is welcome too!
If you find this script useful: twitter, digg or blog it to the rest of the world!

Disclaimer: The script underwent extensive testing in Adobe InDesign CS 3. It always did what it had to do! But i cannot garantuee for anything using this script! The usage of this script is at own risk!

  • Twitter
  • Facebook
  • del.icio.us
  • Digg
  • Google Bookmarks
  • Tumblr
  • LinkedIn
This entry was posted in Layers, Scripting and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

9 Comments

  1. Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    Moinmoin,
    cooles Script, sehr praktisch :-) Ich würde die Text-Ebene über der Bildebene anordnen. Falls Bildmaterial nämlich Transparenzen enthält, wird der Text beim Export nach PDF/X1 und X3 in Pfade umgewandelt, sofern die Bild-/Transparenzrahmen die Textrahmen berühren.
    Viele Grüße
    Carsten

  2. Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    Die Reihenfolge der Ebenen können individuell in der TXT-Datei geändert werden. Genauso können Ebenen hinzugefügt oder entfernt werden.

    Gruß Manu

  3. FxBePosting
    Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    Great script, thanks.

    I have a problem when i use your script in cs4:
    Error number 775
    A layer with the same name exist already
    Ligne 67
    myDoc.layers[0].name = myLayerNames[i];

    i click ok and the layers are create.
    For information i use the “french cs4 version”

  4. FxBePosting
    Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    I found the solution:
    if someone have the same problem :
    closed indesign, choose the script again and create a new document.
    After that the error message is gone and everything works great…

  5. Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    :-) ) I took steps to your script can speak and Russian and wrote you a letter at admin@dinform.at

  6. David
    Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    error message

    “this file is already opened by another user or another application. This file may be stored on a network server and cannot be opened until the other user closes it”

    I get this message when placing files with shortcut (command D)

    Any Fix?

    David

  7. Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    I have placed the folder in my InDesign Script Startup Folder but after pressing the “OK”-button in the “New Document”-dialog; I do not get a layer set or Drop down menu to choose a layer set. Can you tell me what I am doing wrong?

  8. Reskator
    Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    Thank you for this script.
    For the next version, is it possible to specify the layer color ?

  9. Wolfgang Wiesen
    Posted %A %B %e%q, %Y at %I:%M %p | Permalink

    Hallo Herr Hollert,
    ist es möglich dieses geniale Script an Indesign CS5 anzupassen? Ich nutze es schon seit längerem unter CS4 und es arbeitet klaglos. Unter CS5 verabschiedet sich Indesign nach dem Auswahldialog des Scripts.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>