Prémentionnées layers

Does anyone know of a script that generates a fixed number of layers with predefined names? in a specific order up and down the stack?

Thank you very much

Sean

I don't know that you can nut how to add your own layer names and number of layers.

This does not remove the existing layers in the document.

existing layers are left inside.

var LayersList = [
    '1st Layer',
    '2nd Layer',
    '3rd Layer',
    '4th Layer',
    '5th Layer',
    'Last Layer'
];
var doc = app.activeDocument;
for(var i = LayersList.length-1; i > -1; i--){
    var newLayer = doc.layers.add();
    newLayer.name = LayersList[i];
}

Tags: Illustrator

Similar Questions

  • Help please on switching to 32bits version CS5

    I particularly like to use the old card of Variations in and I gathered in this forum that it is only available on the 32-bit edition of CS5 on a Mac.  I have followed the links in the solution, which is to open the CS5 program - go to file, open info and chose 32-bit.  Please forgive me - I'm brand new on a Mac, and for the life of my I can't see to read the information in the file menu of CS5 to make power - I don't know really, it should be simple, but I must be missing something.  Could someone give me please the simple solution. Thank you.

    Well not knowing exactly what you're trying to do, I'd say make a layer of solid color and then choosing 'Overlay' or 'Color' as

    your blending mode of this layer.

    You can always change the opacity, as well as the color (double-click the icon of solid color) for what you want afterwards.

    You should also check using a layer of Hue-Saturation, as well as the other no-destructive editing layers... not to mention several layers them to turn on and off as needed. I say... you need to learn Photoshop...

    With regard to the opening of files of CS2 in CS5, no problem I know. Returning back is a no-go.

    PS: Excuse me for not calling the layers by name: adjustment layers. Take a look on YouTube for a few decent tutorials.

  • Edition in the form of layers in photoshop from lightroom does not.

    When you shoot several raw files from Lightroom, (Newest PC version) in photoshop to edit in the form of layers, it warns me that I might need to last version of camera raw (9.5). I have 9.5. So it won't work. If I open as separate files it works fine... WIndows 10... help?

    UPDATE 2: I was able to solve my problem, but thank you! Above mentioned part of the problem, the article fixed pointing me to see which version of the sites of the article, which was not the first version. Then, I found a download manual plugin for gross carmera 9.5 and placed directly in the folder as shown in the article above. Problem solved.

  • How do you apply Blur to only one of the two duplicate layers?

    Hello everyone

    I have two layers of dynamic object to a panoramic photo, which is a duplicate of the other and returned vertically.

    I would like to apply Blur to the inverted layer, so this step appears as a reflection of the other layer.

    However, when I apply the blur to the image reversed in its .psb document window, the blur effect ends on the two layers.

    Why the blur apply to two separate smart objects and how could possibly apply Blur to only one of the two double layers?

    Please advise me.

    Thanks as always,

    EAD

    Even if you see two separate layers, Photoshop is not to see them in the same way. When you using duplicated layer (Ctrl/Cmd + J) command, which tells Photoshop to create clones SO double layer sets SO. Update content on one of the 2 cloned layers will take into account changes to another. As you modify the content of a layer of cloned SO that change is automatically reflected in the other. As noted above, the solution is mentioned to apply the blur as a dynamic filter without changing the content (do not double click on layer SO): with SO layer selected in the layers panel, go to filter > blur > Gaussian blur.

    To cite only in case you need this option: you can duplicate the layer SO without cloning to help: command of new dynamic through copy object . In this case you can apply changes to the .psb file you make and modifications will not reflect to another (parent) layer of SO. In this case, disadvantage is that you can't quickly Exchange content on the two SO layers when creating clones SO you can overlay.

  • Annoying behavior of 2015 layers Cc10

    PS 2015 has CC of this feature annoying scrolling of content in the layers panel to the top during the deletion or duplication/variable of a layer group.

    Is it possible to stop this? It is incredibly intrusive.

    Dang, had not noticed that until now.

    Check out this thread:

    Re: Layer Palette list jumping around on DSP with multiple work plans

    It seems that some Adobe employees have already recognized that problems exist, but then I think that the original poster mentions the problem you describe they can have focused on aspects of the artboard.

    You might see if a feature request already exists and if not repeat a to

    Community customer Photoshop family

  • Why I didn't copy and paste layers or folders in Photoshop?

    I honestly have a hard time understanding why I can't layers Ctrl + C and Ctrl + V, or folders (with styles and properties) in Photoshop, although I can with other elements in Photoshop and with almost all elements of all software published by Adobe (including the insurmountable more complex layers of an After Effects composition). I have long used different methods to copy layers and folders autour (double drag, etc.), but they can all be very heavy at times depending on the project and this is the specific workflow. For example, I just finished editing on the thirty selected RAW photos of an event in PS and I need either already have my watermark on them that I have edited, each of them or that I do now as a big batch of ol '-note: because I put my mark in a location unique photo based on its content This is the direction and My Eye stocks or batch commands do not work for this). My only option really is to visit the source document containing my watermark layer more than thirty times to retrieve a single item of data which could and should only be required in my Clipboard and available with a simple keyboard shortcut (note also that my brand fusion styles will be also adjusted according to the photo, excludes a selection of brand that can be copy and paste but only as a raster with an alpha channel layer).

    Y at - it an explanation of why it's missing? Maybe there's a logical reason, I do not understand...?

    See you soon!

    Also use ctrl/cmd-J to duplicate (copy) a layer in the same document, which will retain all of its attributes. And as Trevor mentioned, you can just drag the layer in the layer panel to another document tab to replicate to another document - no menus, no workspace rearrangement.

  • Is there anyway to keep the layers in Photoshop Elements when recording in format .jpg?

    I am new to the use of PES and I like their concept of layers so that the original photo is not altered, however, my preference is to save all my files using .jpg.  I actually discovered yesterday that after 3 weeks of scanning in very old family photos, then using PSE11 and using layers and then backup to .jpg, now when I open it again these files in EPS that the layers created have disappeared.  Help, please!

    Thanks for the recommendation on Googling PSD to JPEG conversion that I'll look in.  My plan is I think the first scenario that you mentioned.  I spent a week off the coast during Christmas pictures old many sorting that I inherited and have since bought an Epson V600 Scanner that came with Photoshop Elements.  I spent a number of weeks of research on the best practices to use with the Epson scanner analysis, then an equal amount of time familiarizing myself with Photoshop Elements I've ever used before.  In particular, compared to the other I used photo editing tools, I really like the ability to retouch PSE and localized sharpening / Brush tool for a lot of old photos that aren't in the best of shape.  To change things (just if I'm not scanning for a year and then touching up for another year +), I'm scanning a group of photos I've sorted by theme and then spending time using Photoshop on these, and most of the time I'm scanning only pictures of people that I know to be members of the family or friends of family nearby. Once this batch is finished, I was moving to the next batch of scanning and treatment with PSE.

    Funny you should mention the kodacolor the slides that you have scanned.  I did this same work (approx. 5000 slides that my dad had in his lifetime) about 7 years ago with a slide scanner that I bought at the time.  Like you, I've scanned everything and then using a tool (Zoombrowser) editing of Canon, I hit only these slides scanned with meaning for me.  Now the phase 2 (7 years later) is scanning in all my photos of old parents, and I've already sorted on the pictures, I think no family, so now are using PSE, I expect I'll do some sort of button until most of them.  Sorry for the lengthy response, but I enjoyed reading of your recommendations and appreciate the help and guidance you provided.  Thanks for all your help and your time.

    Rob

  • How to batch export layers in png in cc files

    I have a problem with an export of layers to the script files I want to layer export batch in png and this script I have seems to be the only I can whenever I run the script I get this error message "Could not complete the action because the destination folder does not exist" the script required me to hardcode the my destination path the path that I need is "C:/users/Tim/Desktop/decors/png / '. I'm not completely sure why its registrant, that there is not any help would be greatly appreciated. I tried to contact the creator, but the post that it was was very old.

    activate the double click from the Macintosh Finder or Windows Explorer

    #target photoshop

    //=================================================================

    Globals

    //=================================================================

    exportPath var = ' / users/pedr/Documents/work/Clients/routes/Learning_Hub/Source/Comics/export ";

    exportPath = exportPath + "/ layers ';

    Localized UI strings

    var strTitle = localize("$$$/JavaScripts/X2L/Title=X2L");

    var strButtonRun = localize("$$$/JavaScripts/X2L/Run=Run");

    var strButtonCancel = localize("$$$/JavaScripts/X2L/Cancel=Cancel");

    var strHelpText = locate ("$$$ / JavaScripts/X2L/Help = Please specify the format and location for the registration of each layer as a file.");

    var strLabelDestination = localize("$$$/JavaScripts/X2L/Destination=Destination:");

    var strButtonBrowse = locate ("$$$ / JavaScripts/X2L/Browse = & Browse...");

    var strLabelFileNamePrefix = locate ("$$$ / JavaScripts/X2L/FileNamePrefix = filename prefix :"); ")

    var strCheckboxVisibleOnly = locate ("$$$ / JavaScripts/X2L/VisibleOnly only = & layers visible only");

    var strLabelFileType = locate ("$$$ / JavaScripts/X2L/FileType = Type of file :"); ")

    var strCheckboxIncludeICCProfile = locate ("$$$ / JavaScripts/X2L/IncludeICC = & include ICC profile");

    var strJPEGOptions = locate ("$$$ / JavaScripts/X2L/JPEGOptions = Options JPEG :"); ")

    var strLabelQuality = localize("$$$/JavaScripts/X2L/Quality=Quality:");

    var strCheckboxMaximizeCompatibility = locate ("$$$ / JavaScripts/X2L/enlarge = & maximize compatibility");

    var strTIFFOptions = locate ("$$$ / JavaScripts/X2L/TIFFOptions = TIFF Options :"); ")

    var strLabelImageCompression = locate ("$$$ / JavaScripts/X2L/ImageCompression = Compression of Image :"); ")

    var strNone = localize("$$$/JavaScripts/X2L/None=None");

    var strPDFOptions = locate ("$$$ / JavaScripts/X2L/PDFOptions = PDF Options :"); ")

    var strLabelEncoding = localize("$$$/JavaScripts/X2L/Encoding=Encoding:");

    var strTargaOptions = locate ("$$$ / JavaScripts/X2L/TargaOptions = Options of Targa :"); ")

    var strLabelDepth = localize("$$$/JavaScripts/X2L/Depth=Depth:");

    var strRadiobutton16bit = localize("$$$/JavaScripts/X2L/Bit16=16bit");

    var strRadiobutton24bit = localize("$$$/JavaScripts/X2L/Bit24=24bit");

    var strRadiobutton32bit = localize("$$$/JavaScripts/X2L/Bit32=32bit");

    var strBMPOptions = locate ("$$$ / JavaScripts/X2L/BMPOptions = Options of BMP :"); ")

    var strAlertSpecifyDestination = locate ("$$$ / JavaScripts/X2L/SpecifyDestination = please specify destination.");

    var strAlertDestinationNotExist = locate ("$$$ / JavaScripts/X2L/DestionationDoesNotExist = Destination does not exist.");

    var strTitleSelectDestination = locate ("$$$ / JavaScripts/X2L/SelectDestination = Select Destination");

    var strAlertDocumentMustBeOpened = locate ("$$$ / JavaScripts/X2L/OneDocument = you must have a document open for export!");

    var strAlertNeedMultipleLayers = locate ("$$$ / JavaScripts/X2L/NoLayers = you need a document with several layers to export!");

    var strAlertWasSuccessful = locate ("$$$ / JavaScripts/X2L/success = succeeded.");

    var strUnexpectedError = locate ("$$$ / JavaScripts/X2L/Unexpected = unexpected error");

    var strMessage = localize("$$$/JavaScripts/X2L/Message=X2L");

    var stretQuality = locate (' $$$ / locale_specific/JavaScripts/X2L/ETQualityLength = 30 ");

    var stretDestination = locate (' $$$ / locale_specific/JavaScripts/X2L/ETDestinationLength = 160 ');

    var strddFileType = locate (' $$$ / locale_specific/JavaScripts/X2L/DDFileType = 100 ');

    var strpnlOptions = locate (' $$$ / locale_specific/JavaScripts/X2L/PNLOptions = 100 ');

    var strPNG8Options = locate ("$$$ / JavaScripts/X2L/PNG8Options = PNG-8 Options :"); ")

    var strCheckboxPNGTransparency = localize("$$$/JavaScripts/X2L/Transparency=Transparency");

    var strCheckboxPNGInterlaced = localize("$$$/JavaScripts/X2L/Interlaced=Interlaced");

    var strCheckboxPNGTrm = locate ("$$$ / JavaScripts/X2L/Trim = Trim layers");

    var strPNG24Options = locate ("$$$ / JavaScripts/X2L/PNG24Options = Options format PNG-24 :"); ")

    the drop in the index from the file type list

    var png24Index = 7;

    main();

    ///////////////////////////////////////////////////////////////////////////////

    Functions

    ///////////////////////////////////////////////////////////////////////////////

    ///////////////////////////////////////////////////////////////////////////////

    Function: main

    Use: the core routine for this script

    Entry: < no >

    Return: < no >

    ///////////////////////////////////////////////////////////////////////////////

    main() {} function

    If (app.documents.length < = 0) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (strAlertDocumentMustBeOpened);

    }

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    var exportInfo = new Object();

    initExportInfo (exportInfo);

    Search the last used via Photoshop register params, getCustomOptions rise if none does not exist

    try {}

    }

    {catch (e)}

    It's ok if we have any options, continue with the default settings

    }

    try {}

    var Nomdoc = app.activeDocument.name;  record the name of app.activeDocument before double.

    var layerCount = app.documents [docName].layers.length;

    var layerSetsCount = app.documents [docName].layerSets.length;

    If ((layerCount < = 1) & & (layerSetsCount < = 0)) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (strAlertNeedMultipleLayers);

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    } else {}

    var rememberMaximize;

    var needMaximize = exportInfo.psdMaxComp? QueryStateType.ALWAYS: QueryStateType.NEVER;

    app.activeDocument = app.documents [docName];

    var duppedDocument = app.activeDocument.duplicate ();

    duppedDocument.activeLayer = duppedDocument.layers [duppedDocument.layers.length - 1]; to remove the

    setInvisibleAllArtLayers (duppedDocument);

    exportChildren (duppedDocument, app.documents [docName], exportInfo, duppedDocument, exportInfo.fileNamePrefix);

    duppedDocument.close (SaveOptions.DONOTSAVECHANGES);

    If (rememberMaximize! = undefined) {}

    app.preferences.maximizeCompatibility = rememberMaximize;

    }

    If (DialogModes.ALL == app.playbackDisplayDialogs) {}

    Alert (strTitle + strAlertWasSuccessful);

    }

    app.playbackDisplayDialogs = DialogModes.ALL;

    }

    } catch (e) {}

    If (DialogModes.NO! = app.playbackDisplayDialogs) {}

    Alert (e);

    }

    return to "Cancel"; quitting smoking, return "Cancel" (do not localize) makes the palette actions not to register our script

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: settingDialog

    Use: pop of the UI and get the user settings

    Entry: object of exportInfo containing our settings

    Back: OK, the info in the dialog box is set to the exportInfo object

    ///////////////////////////////////////////////////////////////////////////////

    function settingDialog (exportInfo) {}

    return;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: hideAllFileTypePanel

    Use: hide all panels in common stocks

    Entered: < none >, dlgMain is a global for this script

    Return: < any >, all the panels are now hidden

    ///////////////////////////////////////////////////////////////////////////////

    function hideAllFileTypePanel() {}

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: initExportInfo

    Use: create our default settings

    Entry: a new object

    Return: a new object with the default params

    ///////////////////////////////////////////////////////////////////////////////

    function initExportInfo (exportInfo) {}

    exportInfo.destination = new String (exportPath);

    exportInfo.fileNamePrefix = new String ("untitled_");

    exportInfo.visibleOnly = false;

    exportInfo.fileType = png24Index;

    exportInfo.icc = true;

    exportInfo.png24Transparency = true;

    exportInfo.png24Interlaced = false;

    exportInfo.png24Trim = true;

    try {}

    exportInfo.destination is Folder (new String (exportPath)) .fsName;. destination folder

    var tmp = app.activeDocument.fullName.name;

    exportInfo.fileNamePrefix = decodeURI (tmp.substring (0, tmp.indexOf("."))); part of the body filename

    } catch (someError) {}

    exportInfo.destination = new String (exportPath);

    exportInfo.fileNamePrefix = app.activeDocument.name; part of the body filename

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: saveFile

    Use: the routine of work, take our params and save the file accordingly

    Entry: refers to the document, the name of the output file,

    export of information object containing more information

    Return: < any >, a file on disk

    ///////////////////////////////////////////////////////////////////////////////

    function saveFile (docRef, fileNameBody, exportInfo) {}

    saveFile (docRef, fileNameBody, exportInfo, false, true);

    function saveFile (docRef, fileNameBody, exportInfo, interlacedValue, transparencyValue) {}

    var id6 = charIDToTypeID ('Expr');

    var desc3 = new ActionDescriptor();

    7 var = charIDToTypeID ("Usng");

    var desc4 = new ActionDescriptor();

    id8 var = charIDToTypeID ("Op");

    id9 var = charIDToTypeID ('SWOp');

    var id10 = charIDToTypeID ("OpSa");

    Desc4.putEnumerated (id8, id9, id10);

    id11 var = charIDToTypeID ("Fmt");

    id12 var = charIDToTypeID ("IRFm");

    id13 var = charIDToTypeID ("PN24");

    Desc4.putEnumerated (id11, id12, id13);

    var id14 = charIDToTypeID ("Introduction");

    Desc4.putBoolean (id14, interlacedValue);

    id15 var = charIDToTypeID ("Trns");

    Desc4.putBoolean (id15, transparencyValue);

    id16 var = charIDToTypeID ("Mtt");

    Desc4.putBoolean (id16, true);

    var id17 = charIDToTypeID ("MttR");

    Desc4.putInteger (id17, 255);

    var id18 = charIDToTypeID ("MttG");

    Desc4.putInteger (id18, 255);

    id19 var = charIDToTypeID ("MttB");

    Desc4.putInteger (id19, 255);

    id20 var = charIDToTypeID ("SHTM");

    Desc4.putBoolean (id20, false);

    id21 var = charIDToTypeID ("SImg");

    Desc4.putBoolean (id21, true);

    id22 var = charIDToTypeID ("OHSA");

    Desc4.putBoolean (id22, false);

    var id23 = charIDToTypeID ("SSLt");

    var list1 = new ActionList();

    Desc4.putList (id23, list1);

    var id24 = charIDToTypeID ("DIDr");

    Desc4.putBoolean (id24, false);

    id25 var is charIDToTypeID ('In');.

    Desc4.putPath (id25, new file (exportPath + "C:/users/Tim/Desktop/decors/png /" + fileNameBody + ".png"));

    var delayed26 = stringIDToTypeID ('SaveForWeb');

    Desc3.putObject (7, delayed26, desc4);

    executeAction (id6, desc3, DialogModes.NO);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: zeroSuppress

    Use: return a string completed up to the figure (s)

    Entry: num to convert, the number of necessary digits

    Return: string padded all numbers

    ///////////////////////////////////////////////////////////////////////////////

    function zeroSuppress (num, number) {}

    var tmp = num.toString ();

    While (tmp.length < number) {}

    tmp = '0' + tmp;

    }

    return tmp;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: setInvisibleAllArtLayers

    Use: Unlock and make invisible all the layers of art, recursively

    Entry: document or layerset

    Back: all layers of art are unlocked and invisible

    ///////////////////////////////////////////////////////////////////////////////

    function setInvisibleAllArtLayers (obj) {}

    for (var i = 0; i < obj.artLayers.length; i ++) {}

    obj.artLayers [i] .allLocked = false;

    obj.artLayers [i] .visible = false;

    }

    for (var i = 0; i < obj.layerSets.length; i ++) {}

    setInvisibleAllArtLayers (obj.layerSets [i]);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: removeAllInvisibleArtLayers

    Use: remove all layers invisible art, recursively

    Entry: document or layer set

    Return: < any >, all invisible layers are now gone

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllInvisibleArtLayers (obj) {}

    for (var i = obj.artLayers.length - 1; 0 < = i; i--) {}

    try {}

    {if(!obj.artLayers[i].visible)}

    obj.artLayers [i] .remove ();

    }

    }

    {} catch (e)

    }

    }

    for (var i = obj.layerSets.length - 1; 0 < = i; i--) {}

    removeAllInvisibleArtLayers (obj.layerSets [i]);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: removeAllEmptyLayerSets

    Use: find everything empty layer sets and remove them, recursively

    Entry: document or layer set

    Return: empty layer sets are now gone

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllEmptyLayerSets (obj) {}

    var foundEmpty = true;

    for (var i = obj.layerSets.length - 1; 0 < = i; i--) {}

    If (removeAllEmptyLayerSets (obj.layerSets [i])) {}

    obj.layerSets [i] .remove ();

    } else {}

    foundEmpty = false;

    }

    }

    If (obj.artLayers.length > 0) {}

    foundEmpty = false;

    }

    Return foundEmpty;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: zeroSuppress

    Use: return a string completed up to the figure (s)

    Entry: num to convert, the number of necessary digits

    Return: string padded all numbers

    ///////////////////////////////////////////////////////////////////////////////

    function removeAllInvisible (docRef) {}

    removeAllInvisibleArtLayers (docRef);

    removeAllEmptyLayerSets (docRef);

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: exportChildren

    Use: find all the children in this document to record

    Entry: duplicate the original of the document, export info.

    Document reference, from file name

    Return: < any >, the documents are saved accordingly

    ///////////////////////////////////////////////////////////////////////////////

    function exportChildren (dupObj, orgObj, exportInfo, dupDocRef, fileNamePrefix) {}

    for (var i = 0; i < dupObj.artLayers.length; i ++) {}

    If (exportInfo.visibleOnly) {/ / only visible layer}

    If (! orgObj.artLayers [i] .visible) {}

    continue;

    }

    }

    dupObj.artLayers [i] .visible = true;

    var NomCouche = dupObj.artLayers [i] .name;  store the name of the layer before change doc

    var duppedDocumentTmp = dupDocRef.duplicate ();

    If ((png24Index == exportInfo.fileType) |) (png8Index is exportInfo.filetype)) {/ / PSD: maintain transparency}

    removeAllInvisible (duppedDocumentTmp);

    PNGFileOptions

    If (activeDocument.activeLayer.isBackgroundLayer == false) {//is it something other than a background layer?}

    app.activeDocument.trim (TrimType.TRANSPARENT);

    }

    } else {/ / all flatten}

    duppedDocumentTmp.flatten ();

    }

    Edit

    var Nomdoc = app.activeDocument.name;

    For some reason any indexOf fails if we include the '-', so we use 'copy' and decrement the index of 1.

    docName = docName.slice (0, docName.indexOf('copy')-1);

    var fileNameBody = (docName + '_' + layerName) .toLowerCase ();

    fileNameBody = fileNameBody.replace (/ [:------/------* \? \ "\ <>\ \ |"]) /g, "_");  // '/\:*?" <> |' -> « _ »

    If {(fileNameBody.length > 120)

    fileNameBody = fileNameBody.substring (0.120);

    }

    saveFile (duppedDocumentTmp, fileNameBody, exportInfo);

    duppedDocumentTmp.close (SaveOptions.DONOTSAVECHANGES);

    dupObj.artLayers [i] .visible = false;

    }

    for (var i = 0; i < dupObj.layerSets.length; i ++) {}

    If (exportInfo.visibleOnly) {/ / only visible layer}

    If (! orgObj.layerSets [i] .visible) {}

    continue;

    }

    }

    var fileNameBody = fileNamePrefix;

    fileNameBody += '_' + zeroSuppress (i, 4) + "s";

    exportChildren (dupObj.layerSets [i], orgObj.layerSets [i], exportInfo, dupDocRef, fileNameBody);  recursive call

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: objectToDescriptor

    Use: create an ActionDescriptor of a JavaScript object

    Entry: JavaScript Object (o)

    unique chain of the object (s)

    Pre process converter (f)

    Return: ActionDescriptor

    NOTE: Only, boolean, string, number and UnitValue are supported, use a pre processor

    to convert other types (f) to one of these forms.

    REUSE: This routine is used in other scripts. Please update those if you

    change. I'm not include using or eval statements that I want these

    stand-alone scripts.

    ///////////////////////////////////////////////////////////////////////////////

    function objectToDescriptor (o, s, f) {}

    o = {};

    var d = new ActionDescriptor;

    var l = o.reflect.properties.length;

    d.putString (app.charIDToTypeID ('Msge"), s);

    for (var i = 0; i < l; i ++) {}

    var k = o.reflect.properties [i] m:System.NET.SocketAddress.ToString ();

    If (k == '__proto__' | k == '__count__' | k == '__class__' | k == 'reflect')

    continue;

    var v = o [k];

    k = app.stringIDToTypeID (k);

    Switch (typeof (v)) {}

    case 'boolean ':

    d.putBoolean (k, v);

    break;

    case "string":

    d.putString (k, v);

    break;

    case 'number ':

    d.putDouble (k, v);

    break;

    by default:

    {

    If (v instanceof UnitValue) {}

    UC var = new Object;

    UC ["px"] = charIDToTypeID ("#Rlt"); unitDistance

    UC ["%"] = charIDToTypeID ("#Prc"); unitPercent

    d.putUnitDouble (k, uc [v.type], v.value);

    } else {}

    throw (new Error ("Unsupported type in objectToDescriptor" + typeof (v)));

    }

    }

    }

    }

    return d;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: descriptorToObject

    Use: updating a JavaScript from an ActionDescriptor object

    Entry: JavaScript Object (o), current to update object (output)

    Photoshop ActionDescriptor (d), descriptor shoot again for object params of

    unique chain of the object (s)

    JavaScript function (f), position the utility of conversion process

    Back: Nothing, update is applied to spent in JavaScript Object (o)

    NOTE: Only, boolean, string, number and UnitValue are supported, use a post-processor

    to convert other types (f) to one of these forms.

    REUSE: This routine is used in other scripts. Please update those if you

    change. I'm not include using or eval statements that I want these

    stand-alone scripts.

    ///////////////////////////////////////////////////////////////////////////////

    function descriptorToObject (o, d, f, s) {}

    var l = d.count;

    If {(l)

    var keyMessage = app.charIDToTypeID ("Msge");

    If (d.hasKey (keyMessage) & & (s! = d.getString (keyMessage))) return;

    }

    for (var i = 0; i < l; i ++) {}

    var k = d.getKey (i); // i + 1 ?

    var t = d.getType (k);

    STRK = app.typeIDToStringID (k);

    switch (t) {}

    case DescValueType.BOOLEANTYPE:

    o [strk] = d.getBoolean (k);

    break;

    case DescValueType.STRINGTYPE:

    o [strk] = d.getString (k);

    break;

    case DescValueType.DOUBLETYPE:

    o [strk] = d.getDouble (k);

    break;

    case DescValueType.UNITDOUBLE:

    {

    UC var = new Object;

    UC [charIDToTypeID ("#RLT")] = "px"; unitDistance

    UC [charIDToTypeID ("#PRC")] = '% '; unitPercent

    UC [charIDToTypeID ("#pxl")] = "px"; unitPixels

    UT var = d.getUnitDoubleType (k);

    var uv = d.getUnitDoubleValue (k);

    o [strk] = new UnitValue (uv, uc [ut]);

    }

    break;

    case DescValueType.INTEGERTYPE:

    case DescValueType.ALIASTYPE:

    case DescValueType.CLASSTYPE:

    case DescValueType.ENUMERATEDTYPE:

    case DescValueType.LISTTYPE:

    case DescValueType.OBJECTTYPE:

    case DescValueType.RAWTYPE:

    case DescValueType.REFERENCETYPE:

    by default:

    throw (new Error ("Unsupported type in descriptorToObject" + t));

    }

    }

    If (undefined! = f) {}

    o = f (o);

    }

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: preProcessExportInfo

    Usage: Convert Photoshop enums to strings for storage

    Entry: Object of JavaScript of my parameters for this script

    Return: Object of JavaScript with objects converted for storage

    ///////////////////////////////////////////////////////////////////////////////

    function preProcessExportInfo (o) {}

    o.tiffCompression = o.tiffCompression.toString ();

    o.pdfEncoding = o.pdfEncoding.toString ();

    o.targaDepth = o.targaDepth.toString ();

    o.bmpDepth = o.bmpDepth.toString ();

    Return to o;

    }

    ///////////////////////////////////////////////////////////////////////////////

    Function: postProcessExportInfo

    Usage: convert strings in destocking Photoshop enums

    Entry: Object of my parameters a string JavaScript

    Return: Object of JavaScript with objects in the form of enum

    ///////////////////////////////////////////////////////////////////////////////

    function postProcessExportInfo (o) {}

    o.tiffCompression = eval (o.tiffCompression);

    o.pdfEncoding = eval (o.pdfEncoding);

    o.targaDepth = eval (o.targaDepth);

    o.bmpDepth = eval (o.bmpDepth);

    Return to o;

    }

    ///////////////////////////////////////////////////////////////////////////

    Function: StrToIntWithDefault

    Usage: convert a string to a number, first depriving all the characters

    Input: a string and a number of default

    Return: a number

    ///////////////////////////////////////////////////////////////////////////

    function StrToIntWithDefault (s, n) {}

    var onlyNumbers = / [^ 0-9] / g;

    var t is SS. Replace (onlyNumbers, "");

    t = parseInt (t);

    If (! isNaN (t)) {}

    n = t;

    }

    return n;

    }

    End X2L.jsx

    The exportPath variable is what you want to change to the beginning. It should read:

    var exportPath = "~/Desktop/Backdrops/png/";
    exportPath = exportPath + '/layers';//Get rid of this
    

    The line you mentioned above should be:

    desc4.putPath( id25, new File( exportPath + fileNameBody + ".png") );
    

    Again, you must be logged in as 'Tim' to access folder of the user. If you're not, you must run the script as an administrator, and then specify the entire path.

  • Masking layers, seems possible, but making mistakes

    Me again, asking weird questions...

    I want to hide certain utility layers in a model, generated by my plugin.  There are some discussions related this topic:

    Masking layers using shyguy and javascript:

    http://forums.Adobe.com/message/5775496#5775496

    Masking layers using AEGP_SetDynamicStreamFlag

    http://forums.Adobe.com/message/2809938#2809938

    I chose to use the SetDynamicStreamFlag method.

    I hacked a version of example of the SDK CEAP "Commando" and added the function CommandHook the following logic:

    ------------

    ERR (suites. ItemSuite6()-> AEGP_GetActiveItem (& active_itemH));

    Err (Suites.CompSuite4 ()-> AEGP_GetCompFromItem (active_itemH, & compH));

    ERR (suites. LayerSuite5()-> AEGP_GetCompNumLayers (compH, & num_layersL));

    for (it = 0;! err & & it < num_layersL; it ++) {}

    ERR (suites. LayerSuite5()-> AEGP_GetCompNumLayers (compH, & temp_numLayersL));

    ERR (suites. LayerSuite5()-> AEGP_GetCompLayerByIndex (compH, it, & layerH));

    ERR (suites. DynamicStreamSuite4()-> AEGP_GetNewStreamRefForLayer (NULL, layerH, and streamH));

    the following command causes AE generate an error.

    ERR (suites. DynamicStreamSuite4()-> AEGP_SetDynamicStreamFlag (streamH, AEGP_DynStreamFlag_HIDDEN, FALSE, TRUE));

    Err2(Suites.) StreamSuite4()-> AEGP_DisposeStream (streamH));

    streamH = NULL;

    }

    ------

    It's * work * CS6, but it is also throwing an error when I run the AEGP_SetDynamicStreamFlag.  The error is:

    After effects error: failure of internal audit, sorry! {asked for the invalid property path component}

    However the layers become hidden, even if I have to run the plugin several times so he can hide all the layers of the model.  I think that the raised error breaks the loop that I implemented in the code above.

    BTW, it seems to work for a variety of layers, layers of images, sound and cameras are hidden.  The only downside is this error that happens every time.

    MindManju said that he was able to do this work in the related thread, but does not mention a mistake.  I guess I'm just something wrong here.

    I would be has responded to the thread, but its quite old and I wasn't sure what appropriate forum etiquette is when it comes to old threads.

    Any help is appreciated!

    THX

    -Andy

    PS: Yes I'm still pretty green to the SDK and C/C++.  I don't know that I'm probably doing something wrong in this code example

    Well, it OF kind of a hacky solution, which was never intended to be used...

    But if you are determined to go back, so AEGP_StartQuietErrors() to

    do errors disappear.

    and also make err = NULL, after each AEGP_SetDynamicStreamFlag, or the

    engulfed with ERR() lines will not run.

    (this is a mcaro which does not work if err! = NULL)

  • Photoshop CC 14.1 path on several layers turned off editing?

    Editing paths on several layers with the direct Selection tool has been disabled in Photoshop CC 14.1? I can't seem to find a way to do it now, shift - or command-click does nothing. In fact, I can't even click on individual trajectories on different layers, something Photoshop has had forever.

    While it was sometimes problematic how he was at 14.0 (always by selecting multiple layers and go into isolation mode to edit a single), there were moments when it was useful to edit several layers, or even just a click between the layers with the direct Selection tool.

    I saw this documentation on the site, but I'm not sure it's very useful. Can someone give me a help?

    Screen Shot 2013-09-09 at 11.58.44 AM.png

    In addition, what is the keyboard shortcut customized to enter/exit isolation mode? It is mentioned in the image above, but what really?

    You can always work with the railways of the way in which you could in the 14 0 - simply choose the mode of all layers in the path Selection tool or the direct Selection tool options bar. We have added the layer mode active for users who prefer to isolate the paths may be selected based on which layers they have already selected in the layers panel.

    To clarify:

    -Mode of active layers: by clicking or dragging on the canvas with the selection of vector tools will not affect which layers are selected in the layers panel. Double click to go into isolation mode is disabled.

    -All modes of layers: works exactly as in 14, 0 - by clicking or dragging on the canvas with the selection of vector tools can change which layers are selected in the layers panel. Double click to go into isolation mode is enabled.

    If you are a lot of switching between these two modes, you can add a custom keyboard shortcut that is alternate which mode is selected. In the keyboard shortcuts dialog box, choose shortcuts for: tools and scroll down to the option Direct selection Mode Toggle. Add your new shortcut here.

    As for your question on the hotkeys for the isolation mode, it simply means that you can assign a hotkey customized for this command as well (select > isolate the layers).

  • Data of pin corner moka solid layers (CS6) scale

    Hi, im new to the forums (no permanent damage if) adobe and im having trouble with mocha, followed by corner pin data. I practiced this effect under the surface of skin of Iron Man 3 video Copilot made a tutorial, but im having a few problems. The first time I did it, everything went well. I got the effect as I wanted and it was astounding. The second time, things started to go wrong. I had all my elements of film in the right place and composed pre. I had followed all in mocha before creating the effect. I selected the type of data correct corner pin (one that does not support motion blur) and copied to the Clipboard. I stuck on composition with all effects sequences and... He got about 3 times smaller. Ive tried to do several times since then and continues to be. Ive resorted using a null object when this happens, but I want to know what im doing wrong. Ive looked all over the web and someone posted probably a problem somewhere, but im tired of searching. Please, if you know which continues, response.

    Thanks again,

    DaKernel

    CS6 course

    Hello

    As Rick mentioned, the workflow you have done in the first post is not the right way to paste the data.  If you are pasting corner pin data to a layer that is not the same size as the model, it will scale down incorrectly.

    In your case, you applied a Mocha mask data to the layer, which reduced the size of the layer to the dimensions of the bounding shape.

    The difference in Andrew Kramer's tutorial is it aligned to the surface to Mocha for tracking of layer data to adapt to full frame, and then he asked the data again to the effect demo layer which is also the same size as the model. It's one of the ways that make sure that the data that happens to mount properly. Just apply the mask then applying tracking data will not work, because the corners of After Effect based its curvature on the dimensions of the layer, not the computer.

    See here for more information on how this works:

    Documentation "Imagineer Systems.

    Take a look at the section called "Applying Corner Pin for layers with different dimensions".

  • masking layers through "border"?

    I use edge to implement animations for pages in my portfolio.  I'm working on several, but I always instinctively use technical Flash that are different, or do not work with the edge.  I'm trying to set up a kind of "conveyor belt" with two belts, one on top and one below.  Each belt will scroll and include a mention and cycle loop to the words to move backward through the graphics of machine I have.

    Is there a way to "hide" an object beyond the cursor opacity and images pin key/code?  Once the word is covered by the machine, I want it to disappear, but the parts of speech that have not yet been transported inside the machine are still visible, so using the opacity slider is released until the word entire is inside the machine.  But if I try to scale, the shape changes while the parts of the Word are still visible.

    One solution is to divide each word into pieces of 3 letters or so, with separate layers for each group of letters.  Then once each piece is hidden, flashing outside.  But before I do that, I would like to know if there is a way to make an edge hard, or on a line somewhere on the stage, below which a specified layer becomes invisible, so that if an object passes this limit before leaving the stage, he disappears gradually.  Is this possible?  I prefer it because I intend to animate "belts" the same way for smooth scrolling.

    All advice is appreciated - thanks in advance.

    Greg

    Thanks Darrell!

    Hey Slyrr, mark it as correct, so it is useful for other users to do the same thing. Thank you.

  • Saving return CC illustrator file to CS6 without losing the layers?

    How can I save save illustrator files created in CC (CS7 version?) to CS6 without losing the layers?  When I open the files in CS6 he says "some information will be lost ' Ha!  all the layers and the separation is lost, so is unable to separate the parts... everything seems grouped and cannot be separated?

    When I return to my computer (other) where I was stupid enough to upgrade to CC, I can't figure out a way to save money as soon as I can with InDesign and save as a file idml.  Help!

    The first dialog box offers the location and the type of file to save. You want a .ai file. The second dialog box that mentions Monica is the dialog box Options of Illustrator in which you choose the version of Illustrator by the drop-down list at the top. It is in this area that you want to choose Illustrator CS6 version to save.

  • InDesign CS5 do not have access to the layers panel

    I have InDesign CS5, version 7.0.4. on Windows 7 and I noticed that the layers Panel has disappeared. I tried, by choosing a different workspace; in the window menu and choosing diapers; F7 pressed; opens another document where I knew I had layers. I can't do anything to display the layers panel. I checked with my Adobe Application Manager and it says that my updates are all up to date. I don't use very often layers in InDesign, so I don't know when this happened. I have the feeling that an update may have changed things. Since the installation of the update (it was some time ago) and when I reduce ID I can always see two windows, even if I only opened a. When you hover over the minimized icon the title of the second window is "HWNDBasedPanelView UID:600". Probably has nothing to do with the layers panel endangered, but I thought that I would have mentioned. Any suggestions?

    This is a typical corrupt preferences. Try:

    Garbage, replace, reset or restore the application preferences: http://forums.adobe.com/thread/526990

  • Duplicateing many layers...

    I have been away fom PS for a while. I used to know how to combine multiple layers into a new layer. But it has been awhile.

    Any suggestions?

    As I mentioned, if you want to make a flattened copy of layers all now individually hide them all other layers and press command-alt-shift-E or select them and convert to an object dynamic (layers exist in Society and can be changed there).

Maybe you are looking for

  • Impossible to update iPhoto

    If I click to update iPhoto I get the following error message; This update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled. I have no idea why I never had an Apple ID and pass

  • Skyfire

    anyone to download and install the browser skyfire for their i1 web, if yes, where and how?

  • What wireless network card Mini-PCI can I install on Satellite 1410 604

    Hello What types of cards Mini-PCI can I install in this laptop?There is information in the user manual, this Satellite 1410 minipci location is compatible with Type III A. Will this card http://www.gigabyte.com.tw/Support/Communication/FAQ_Model.asp

  • Photosmart HP 7520: hp 7520 print settings

    I was extremely satisfied with the quality of 7520 far color printing.  I now have extremely poor results, faded blurry photos.  I had lost my print settings and since I'm not technical decided to try to change the settings.  I have tried both lettin

  • No "vibrate on touch" with Android Lollipop

    Lollipop installed Android recently.1. the "Vibrate on touch" function doesn't work!The settings button is on, but the keys do not vibrate when you type (by KitKat).Sony please help! Everyone finds this problem?