Copy/Capture Adjustment Layer settings using Javascript

Hi,
For last couple of days I'm trying to copy adjustment layer settings via Javascript after adjustment layer has been already created.
General idea is to capture adjustment layer settings and save them to JSON file for future preset etc. I was hoping to capture raw data ( getData(stringIDToTypeID('legacyContentData'))) and store it in JSON file base64 encoded.
I'm able to capture raw data but I'm not able to restore it to the adjustment layer using putData or something similar.
Capture raw data of adjustment layer:
var doc = app.activeDocument;
var layer = doc.activeLayer;
ref.putEnumerated(charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt"));
var desc = executeActionGet(ref).getList(stringIDToTypeID('adjustment')).getObjectValue(0);
rawData = desc.getData(stringIDToTypeID('legacyContentData'));
Trying to restore raw data:
   var desc = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putEnumerated(cTID('AdjL'), cTID('Ordn'), cTID('Trgt'));
        desc.putReference(cTID('null'), ref);
        aldesc = new ActionDescriptor();
        aldesc.putEnumerated(sTID("presetKind"), sTID("presetKindType"), sTID("presetKindCustom"));
        var list1 = new ActionList();
// Not sure what to do here ...
        aldesc.putList(cTID('Adjs'), list1);
        desc.putObject(cTID('T   '), id, aldesc);
        executeAction(cTID('setd'), desc, mode);
If I'm using above code with code generated by i.e. script listener or action translated into javascript it works (at least for curves), but I'd rather use getData/putData so I can capture already created adjustment layers with out need to code each layer separately. toStream and fromStream also would work, but I wasn't able to restore data using these methods too.
Help would be appreciated.
Thanks!

Thanks for the replies you guys. It's not hardware related Mylenium. My machine was purpose built for AE work and this is a very simple comp that is nothing remotely as intensive as some of the truly complex and effects ladened projects I've done before. It's even simpler than the one in the same project where the other adjustment layer is working properly. The layer is going white before an effect is even being added, so it's not that. I'll double check the OpenGL when I can get back on my machine in a bit, but I never changed anything before changing comps, so I don't think that's it.
I'm guessing that it is probably related to the layer settings itself. There's no 3D layers so it's not that Dave. I'm going to check Rick's idea when I can because the white solid behavior sounds exactly what he is talking about.

Similar Messages

  • How to copy an adjustment layer mask in CS6

    I want to use the same adjustment mask twice on the same image. For example I want to use the adjustment mask for curves and possibly saturation. How can I duplicate the mask but keep all effects.

    You could put the Adjustment Layers into a Layer Group and use the mask for the Group. That way you'd only have to edit one mask to affect all your Adjustment Layers.

  • How can I set Illustrator CS5 color settings using Javascript?

    I can set Photoshop color settings with the app.colorsettings ('File') in javascript, but I cannot locate an object in Illustrator that would perform the same task. I can only find readonly objects for illustrator. I would like to have illustrator read a script file to set the color setting
    upon startup.
    Thanks

    Hi imagecollection, that was kind of true in 2010, color mode was possible to be changed via Actions and vbs or as
    Re: Change color space
    with CS6 or newer it is more straight forward since js can play actions, and even easier using executeMenuCommand...however I'm not sure if the OP needs to change color mode or if he wants to load color profiles.

  • Two adjustment layer in two different grups

    Hello
    I have a problem with my layers which I can not figure out how to solve.
    see picture:
    I have a group called: "Hele akvarier" " where I have used "Create new fill adjustment layer" - "Brightness / Contrast" to the layers which are under.
    (Layer 2, Original Copy, Original).
    Over is there are two layers named "Layer 3, Layer 1". These layers, I also need to  use the "Brightness / Contrast" to they're going to look right, but the top "adjustment layer" affects all the layers under.
    How do I get my layers divided into two groups, each with its "adjustment layer" to use each with its own settings?

    Put Layer 1, Layer 3 and the top Brightness/Contrast layer in a new Group. The Group will have a default blending mode of Passthrough which will still allow the Brightness/Contrast to affect the image below the Group. Change the Group's blending mode to Normal to limit the Brightness/Contrast effect to the lower layers inside the Group.
    Similarly, change the blending mode of "Hele akvarier" to Normal to limit its Brightness/Contrast to the lower layers inside the Group.

  • Adjustment layer and Magic Bullet Looks corruption

    I often find using the adjustment layers to apply colour correction an easy trick and therefore love the concept.
    However, I've recently noticed that PP CS6.0.2 does not like MB Looks to be applied to adjustment layers all that well.
    On two recent projects, the primary sequence has become corrupt (PP loads and quits immediately) and I have to recover the edit by copying the none adjustment layer tracks to a new sequence and then relinking the media.
    Today, I spent 4 hours recovering another complex sequence and wanted to know if any other person has had a similar experience applying MB Looks to an adjustment layer?
    A word of warning to others who might be thinking of the same 'trick'.
    Perhaps I am expecting too much of the adjustment layer concept.
    Thanks for any responses.
    J.

    I found myself here because... I was trying to open last saved project and it just crashes.
    I did use Magic Bullet "Looks" and "Cosmo" on both footage and adjustment layers.
    "Panic... Drink Coffee" !!!!! idea !!!!
    Uninstall Magic Bullet
    Launch CS6APP
    Open same project file warning you don't have plugins installed.
    Delete the "Adjustment Layers" (you won't be able to get the adjustment layer settings back but, you will get the edit back
    Save project "new name"
    Re-install plugins
    Re-open CS6APP
    "new name" project file opens fine without the adjustment layers.
    But wait!!! Why should you uninstall Magic Bullet?????
    Open a new project
    Import entire project file into new project
    Go to media bin and delete the "adjustment layers"
    Find last Sequence that had the adjustment layers and you can go back to working
    We put finishing effects on entire or even sections of full edit
    1. Select edit < New Sequence from clip... apply effects on new sequence
    2. Not "adjustment layers" BUT!!
    2. Right now I found this just be an issue with RedGiant plugins I'm going to pass this post along to them..
    This is a link to our project we had this happen too. (Sound tweaking)
    Superfine Bakery : Who we are on Vimeo
    CS6APP 6.0.5
    MacBookPro Retina 16 gigs of ram
    Thunderbolt 2 drive with source
    USB 3 drive writing scratch
    (2) external monitors attached

  • Save each layer to a file but take care of a top set HUE Adjustment Layer

    Hello,
    I am using a PS script to save each layer as a png image to disk. It is a modified Adobe PS Script - based on the "Export Layer to File"- script. The script is working fine - however when I use an HUE Adjustment Layer the settings are not rendered into the images. I have a PS CS4 document with 110 layers and 1 HUE adjustment layer at the top of all those layers to modify the color of all layers at once. I need to save all the 110 layers to disk INCLUDING the changes in the adjustment layer. The layers are stored in 55 Layersets. Each Layerset has 2 Layers. The adjustment layer is on top of all layer sets.
    At the moment, when I start the script the images will be saved without the adjustment layer settings. How can I do it - in general - to apply either the adjustment layer to all my layers upfront in PS (render into image) - or apply the adjustment layer to each layer when the layer image is saved to disk using the script. Again, I have only 1 Adjustment Layer at the top of all my layers/layersets.
    Thanks for any hint!

    Is this something like you want?
    var Name = app.activeDocument.name.replace(/\.[^\.]+$/, '');
    var Path = decodeURI(app.activeDocument.path);
    for(var a =0;a<activeDocument.layerSets.length;a++){
        for(var z = 0;z<app.activeDocument.layerSets[a].layers.length;z++){
    activeDocument.activeLayer = app.activeDocument.layerSets[a].layers[z];
    addToSelection(activeDocument.layers[0].name)
    dupLayers("Temp");
    var saveFile = File(Path +"/"+Name+"-"+a+"-"+z+".png");
    SavePNG(saveFile);
    app.activeDocument.close(SaveOptions.DONOTSAVECHANGES);
    function addToSelection(LName){
        var desc8 = new ActionDescriptor();
            var ref6 = new ActionReference();
            ref6.putName( charIDToTypeID('Lyr '), LName );
        desc8.putReference( charIDToTypeID('null'), ref6 );
        desc8.putEnumerated( stringIDToTypeID('selectionModifier'), stringIDToTypeID('selectionModifierType'), stringIDToTypeID('addToSelection') );
        desc8.putBoolean( charIDToTypeID('MkVs'), false );
        executeAction( charIDToTypeID('slct'), desc8, DialogModes.NO );
    function dupLayers(newDoc) {
        var desc185 = new ActionDescriptor();
            var ref88 = new ActionReference();
            ref88.putClass( charIDToTypeID('Dcmn') );
        desc185.putReference( charIDToTypeID('null'), ref88 );
        desc185.putString( charIDToTypeID('Nm  '), newDoc );
            var ref89 = new ActionReference();
            ref89.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        desc185.putReference( charIDToTypeID('Usng'), ref89 );
        executeAction( charIDToTypeID('Mk  '), desc185, DialogModes.NO );
    function SavePNG(saveFile){
        pngSaveOptions = new PNGSaveOptions();
        pngSaveOptions.embedColorProfile = true;
        pngSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
        pngSaveOptions.matte = MatteType.NONE;
        pngSaveOptions.quality = 1;
    pngSaveOptions.PNG8 = false; //24 bit PNG
        pngSaveOptions.transparency = true;
    activeDocument.saveAs(saveFile, pngSaveOptions, true, Extension.LOWERCASE);

  • Photoshop CS6 adjustment layer interface (vs. CS3)

    Hi
    In CS3, my workhorse editor until recently, when I double clicked an adjustment layer it opened up the initial settings window. There I was able to tab browse through the variables, make whatever adjustments I wanted, hit enter, and live happily ever after. I haven't been able to figure out how do do this in CS6, which has the 'properties' panel for making changes to adjustment layer settings.
    The question: Can CS6 be set to behave like CS3 in this respect?

    This script can help you to edit any agjustment layer is old classic style. Assign e.g. Crtl-A to call it and enjoy.
    app.displayDialogs = DialogModes.NO;
    main();
    app.displayDialogs = DialogModes.NO;
    function main()
        try    {
            var type;
            switch (app.activeDocument.activeLayer.kind)
                case LayerKind.BLACKANDWHITE     : type = charIDToTypeID("BanW"); break;
                case LayerKind.BRIGHTNESSCONTRAST: type = charIDToTypeID("BrgC"); break;
                case LayerKind.CHANNELMIXER      : type = charIDToTypeID("ChnM"); break;
                case LayerKind.COLORBALANCE      : type = charIDToTypeID("ClrB"); break;
                case LayerKind.CURVES            : type = charIDToTypeID("Crvs"); break;
                case LayerKind.HUESATURATION     : type = charIDToTypeID("HStr"); break;
                case LayerKind.LEVELS            : type = charIDToTypeID("Lvls"); break;
                case LayerKind.POSTERIZE         : type = charIDToTypeID("Pstr"); break;
                case LayerKind.SELECTIVECOLOR    : type = charIDToTypeID("SlcC"); break;
                case LayerKind.THRESHOLD         : type = charIDToTypeID("Thrs"); break;
                case LayerKind.VIBRANCE          : type = stringIDToTypeID("vibrance");    break;
                case LayerKind.PHOTOFILTER       : type = stringIDToTypeID("photoFilter"); break;
                //case LayerKind.EXPOSURE          : type = stringIDToTypeID("gammaCorrection"); break;
                //case LayerKind.GRADIENTFILL      :
                //case LayerKind.SOLIDFILL         :
                //case LayerKind.GRADIENTMAP       : type = charIDToTypeID("GrMp"); break;
                //case LayerKind.PATTERNFILL       :
                default:
                    return;
            var desc1 = new ActionDescriptor();
            var ref = new ActionReference();
            ref.putEnumerated( charIDToTypeID( "AdjL" ), charIDToTypeID( "Ordn" ), charIDToTypeID( "Trgt" ) );
            desc1.putReference( charIDToTypeID( "null" ), ref );
            var desc2 = new ActionDescriptor();
            desc1.putObject( charIDToTypeID( "T   " ), type, desc2 );
            executeAction( charIDToTypeID( "setd" ), desc1, DialogModes.ALL );
            ref = null;
            desc1 = null;
            desc2 = null;
        catch (e)
            if (e.number != 8007) alert("Line: " + e.line + "\n\n" + e, "Bug!");
    There is also a script that can add a new any adjustment layer in "classic style" without any "properties panel". This new layer can be cancelled in classic style by pressing Esc (or Cancel button).

  • Hue/Saturation adjustment layer questions

    1. When selecting the  channel, like red and then boosting the saturation, does this mean that it is only boosting saturation to the reds in the image and there is no possibility of it boosting the saturation of greens or yellows that may reside in the image?
    2. I also did separate saturation boosts to the green and yellow channel. What is then the purpose of going to the Master channel and boosting the saturation to this channel after boosting the saturation of the individual red, green and blue channels?
    Thanks.

    1. To clarify what you meant by "fine tuning what colors are selected by adjusting sliders for the range at the bottom" my photo has a pink object and a person with reds in the skin. If I select the Reds drop down in the Hue/Saturation adjustment layer and use the eyedropper to select just the pink object to use for my saturation boost, will it leave the reds in the person's skin alone? Is that how it works?
    2. Does it make a difference if you boost the saturation for the Master prior to adjusting the individual colors like reds, and greens? Does the order matter if you do the reds and greens first and then the master?
    Thanks.

  • MOTION TRACKING PROBLEM WITH ADJUSTMENT LAYER

    Hi.
    I'm trying to  blur out a logo on a shoe, but I'm having some difficulty getting the  tracker to stick to the logo.  Can someone help me, please.  Here are  the steps I took:
    1.  I used Tracker to track a logo that I want to blur out.
    2.   After analyzing the layer, I went back to check the attach point frame  by frame  The attach point is centred perfectly on the logo on every  frame.
    3.  Then, I added an adjustment layer, and used the pick  whip to ensure that the position of the adjustment layer is the same as  the attach point position from the tracker.
    4.  On the adjustment  layer, I created an ellipse mask, applied a gaussian blur.  But when I  do playback, the ellipse mask is all over the place and not sticking to  the logo.
    Does anyone have an idea as to what I'm doing wrong?  Any advice would be appreciated.  Thanks, in advance.
    2010 Mac Pro.  After Effects CS5.  Snow Leopard 10.6.6.

    To start off I always apply tracking data to a null then parent the null to the layers that should follow the track.
    Make sure that you have picked the right target. Make sure that you've picked the right options. You should be using Transform as the track type. You should also do a quick Google search. There are a bunch of tracking tutorials out there.
    If your null follows the object then you can parent the adjustment layer to the null. That should do it.

  • MOTION TRACKING PROBLEM IN ADJUSTMENT LAYER

    Hi.
    I'm trying to blur out a logo on a shoe, but I'm having some difficulty getting the tracker to stick to the logo.  Can someone help me, please.  Here are the steps I took:
    1.  I used Tracker to track a logo that I want to blur out.
    2.  After analyzing the layer, I went back to check the attach point frame by frame  The attach point is centred perfectly on the logo on every frame.
    3.  Then, I added an adjustment layer, and used the pick whip to ensure that the position of the adjustment layer is the same as the attach point position from the tracker.
    4.  On the adjustment layer, I created an ellipse mask, applied a gaussian blur.  But when I do playback, the ellipse mask is all over the place and not sticking to the logo.
    Does anyone have an idea as to what I'm doing wrong?  Any advice would be appreciated.  Thanks, in advance.
    2010 Mac Pro.  Premiere Pro CS5.  Snow Leopard 10.6.6.

    I think you will have better luck on the After Effects forum.
    After Effects
    http://forums.adobe.com/community/aftereffects_general_discussion

  • Using color sampler values with curves adjustment layer

    Hi, I have just started trying to teach myself javascript.  Based on preliminary research, it's become apparent that there are many functions in Photoshop that are either extremely cumbersome or impossible to code by hand without using the Script Listener.
    My  goal is as follows: first, I will manually load two photos as layers in a single document.  Then I will manually place two or more color sampler points on the document.  At this point I would like the script to create a curves adjustment layer (ideally clipped to layer 2) and place as individual channel anchor points  the RGB data from the color sampler points on Layer 2, and then adjust the output of the points on each channel to the color sampler RGB values of layer 1.  
    As my first script, I realize this is probably going to be a lot of work.
    I did find some code that returns the average value of manually placed color sampler points.  Conceptually then, I would need to add code which creates a new curves adjustment layer and adds those RGB values (from a specific layer)  as anchor points on the individual channels,  and then hides one layer and looks at the RGB values of the color sampler points, and uses them as the output values for each anchor point.
    Sounds simple enough from a conceptual standpoint.
    I'm looking for some guidance on how to get started.
    Which parts will I definitely need Scriptlistener for and will that be adequate to do the job?
    How would you recommend I get started on this?
    Thanks very much for any input.

    The function I had provided was an example into which you would need to feed the values you got with Mike’s code.
    The code below would create a Curves Layer as shown in the screenshot, but I’m not sure it would work reasonably for all cases.
    // with code by mike hale;
    // 2012, use it at your own risk;
    // call the function to run the script
    #target photoshop
    createCurveAdjustmetFromColorSamplers();
    // create a function fo hold most of the code
    function createCurveAdjustmetFromColorSamplers(){
        // first add some condition checks
        // needs an open document in a color mode that supports layers
        if(app.documents.length == 0 || ( app.activeDocument.mode == DocumentMode.BITMAP || app.activeDocument.mode == DocumentMode.INDEXEDCOLOR ) ){   
            alert('This script requires a document in Greyscale, RGB, CMYK, or Lab mode.');
            return;
        // check for at least two colorSamplers
        if(app.activeDocument.colorSamplers.length < 2 ){
            alert('This script requires at least two colorSamplers.');
            return;
        // last check for at least two layers - assume they will be on same level( not in layerSet )
        if(app.activeDocument.layers.length < 2 ){
            alert('This script requires at least two layers.');
            return;
        // create varaibles to hold the colorSampler's color property for each layer
        // for the bottom layer
        var outputArray = new Array();
        // for top layer - array could also be created this way
        var inputArray = [];
        // store the number of samples because it will be needed in more than one place
        var numberOfSamples = app.activeDocument.colorSamplers.length;
        // hide the top layer
        app.activeDocument.layers[0].visible = false;
        // collect the samples from the bottom layer
        for(var sampleIndex = 0; sampleIndex < numberOfSamples; sampleIndex++ ){
            outputArray.push(app.activeDocument.colorSamplers[sampleIndex].color);
        // turn the top layer back on
        app.activeDocument.layers[0].visible = true;
        // collect those samples
        for(var sampleIndex = 0; sampleIndex < numberOfSamples; sampleIndex++ ){
            inputArray.push(app.activeDocument.colorSamplers[sampleIndex].color);
        // make sure the top layer is the activeLayer
        app.activeDocument.activeLayer = app.activeDocument.layers[0];
    // create arrays of the color values:
    var theArray = [[0, 0, 0, 0, 0, 0]];
    for (var m = 0; m < inputArray.length; m++) {
    theArray.push([inputArray[m].rgb.red, outputArray[m].rgb.red, inputArray[m].rgb.green, outputArray[m].rgb.green, inputArray[m].rgb.blue, outputArray[m].rgb.blue]);
    theArray.push([255, 255, 255, 255, 255, 255]);
    // sort;
    theArray.sort(sortArrayByIndexedItem);
    // makeCurveAdjustmentLayer();
    rgbCurvesLayer (theArray)
    ////// make rgb curves layer //////
    function rgbCurvesLayer (theArray) {
    // =======================================================
    var idMk = charIDToTypeID( "Mk  " );
        var desc5 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref2 = new ActionReference();
            var idAdjL = charIDToTypeID( "AdjL" );
            ref2.putClass( idAdjL );
        desc5.putReference( idnull, ref2 );
        var idUsng = charIDToTypeID( "Usng" );
            var desc6 = new ActionDescriptor();
            var idType = charIDToTypeID( "Type" );
                var desc7 = new ActionDescriptor();
                var idpresetKind = stringIDToTypeID( "presetKind" );
                var idpresetKindType = stringIDToTypeID( "presetKindType" );
                var idpresetKindDefault = stringIDToTypeID( "presetKindDefault" );
                desc7.putEnumerated( idpresetKind, idpresetKindType, idpresetKindDefault );
            var idCrvs = charIDToTypeID( "Crvs" );
            desc6.putObject( idType, idCrvs, desc7 );
        var idAdjL = charIDToTypeID( "AdjL" );
        desc5.putObject( idUsng, idAdjL, desc6 );
    executeAction( idMk, desc5, DialogModes.NO );
    // =======================================================
    var idsetd = charIDToTypeID( "setd" );
        var desc8 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref3 = new ActionReference();
            var idAdjL = charIDToTypeID( "AdjL" );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref3.putEnumerated( idAdjL, idOrdn, idTrgt );
        desc8.putReference( idnull, ref3 );
        var idT = charIDToTypeID( "T   " );
            var desc9 = new ActionDescriptor();
            var idpresetKind = stringIDToTypeID( "presetKind" );
            var idpresetKindType = stringIDToTypeID( "presetKindType" );
            var idpresetKindCustom = stringIDToTypeID( "presetKindCustom" );
            desc9.putEnumerated( idpresetKind, idpresetKindType, idpresetKindCustom );
            var idAdjs = charIDToTypeID( "Adjs" );
                var list1 = new ActionList();
                    var desc10 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref4 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idRd = charIDToTypeID( "Rd  " );
                        ref4.putEnumerated( idChnl, idChnl, idRd );
                    desc10.putReference( idChnl, ref4 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list2 = new ActionList();
    // add r points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list2, theArray[m], 0)
                    desc10.putList( idCrv, list2 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc10 );
                    var desc15 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref5 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idGrn = charIDToTypeID( "Grn " );
                        ref5.putEnumerated( idChnl, idChnl, idGrn );
                    desc15.putReference( idChnl, ref5 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list3 = new ActionList();
    // add g points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list3, theArray[m], 2)
                    desc15.putList( idCrv, list3 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc15 );
                    var desc20 = new ActionDescriptor();
                    var idChnl = charIDToTypeID( "Chnl" );
                        var ref6 = new ActionReference();
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idChnl = charIDToTypeID( "Chnl" );
                        var idBl = charIDToTypeID( "Bl  " );
                        ref6.putEnumerated( idChnl, idChnl, idBl );
                    desc20.putReference( idChnl, ref6 );
                    var idCrv = charIDToTypeID( "Crv " );
                        var list4 = new ActionList();
    // add b points;
    for (var m = 0; m < theArray.length; m++) {
              addCurvePoint (list4, theArray[m], 4)
                    desc20.putList( idCrv, list4 );
                var idCrvA = charIDToTypeID( "CrvA" );
                list1.putObject( idCrvA, desc20 );
            desc9.putList( idAdjs, list1 );
        var idCrvs = charIDToTypeID( "Crvs" );
        desc8.putObject( idT, idCrvs, desc9 );
    executeAction( idsetd, desc8, DialogModes.NO );
    return app.activeDocument.activeLayer;
    ////// add curve point //////
    function addCurvePoint (theList, valueHor, theNumber) {
    var desc11 = new ActionDescriptor();
    var idHrzn = charIDToTypeID( "Hrzn" );
    desc11.putDouble( idHrzn, valueHor[theNumber] );
    var idVrtc = charIDToTypeID( "Vrtc" );
    desc11.putDouble( idVrtc, valueHor[theNumber+1] );
    var idPnt = charIDToTypeID( "Pnt " );
    theList.putObject( idPnt, desc11 );
    ////// sort a double array, thanks to sam, http://www.rhinocerus.net/forum/lang-javascript/ //////
    function sortArrayByIndexedItem(a,b) {
    var theIndex = 0;
    if (a[theIndex]<b[theIndex]) return -1;
    if (a[theIndex]>b[theIndex]) return 1;
    return 0;

  • Adjustment layer blur from AE to PP using dynamic link

    Hi there. I'm having trouble with a project I bring into PP from AE via dynamic link.
    Here's the problem. On my AE project, I have an adjustment layer with lens blur added to it. I also have a track matte assigned to that adjustment layer, because I have a specific shape in which I want the blur to be applied. Works fine in AE.
    However, when I bring the project into PP, the adjustment layer's blur is not applied to anything in PP. It does show up as a blur on animations I created in AE, but is not applied to any footage dropped under it in PP.
    Is this normal, or is there a workaround? At this point there it seems there is no benefit in using dynamic link over exporting the project as a clip with an alpha channel.
    If it helps to understand, the project is a lower third animation. The goal is to not only have it a little transparent but also slightly blur whatever footage is behind it, only in the area of the lower third.
    Any help is much appreciated!

    The export settings in PrPro should be ok, since they are the same ones I use for every other project. I did notice that the Max Render Quality checkbox was unchecked though. I just don't know why with the preview settings at max it still looks blurry. I have noticed that if I close down the project and reopen it, the problem might go away.
    I have tried exporting in AME, but sometimes the encoder just freezes up and won't render it. Again, another random issue. Not sure why that happens. (Though I recently learned about how to clean the cache and haven't tried exporting the project since then.
    I don't know if this will help or not, but what I do is align the footage up in PrPro and then use AE to import the footage. After getting everything the way it should, I use Dynamic Link in PrPro and pull in the AE file.
    I would assemble everything in AE, but the source material is P2 footage and AE doesn't have a viewer to differenate between all the clips.
    And to make sure for all clarity purposes, I can not reppplicate this problem. It seems to come and go as it wants, almost as if my machine is haunted.

  • How copy an alpha channel mask to an adjustment layer?

    I can copy an alpha channel mask to an image layer by Ctrl+Clicking the alpha channel then clicking the Add Layer Mask icon in Photoshop CC but this does not work for an adjustment layer. How can I copy the mask from an alpha channel to the layer mask for an adjustment layer? Thanks.

    I am using Photoshop CC as I stated in my question. All updates have been installed.
    I am running on Win 7 Pro 64 bit with all updates installed.
    I am editing a photograph.
    I have an alpha channel with a grey scale mask.
    If I Ctrl+Click the alpha channel then click the Add Layer Mask button to add a layer mask to an image layer the alpha channel mask is added to the image layer.
    If I delete the layer mask from an adjustment layer and follow the same steps a solid white mas is added to the adjustment layer.
    Several others in the camera club I belong to have tried this with the same result so the problem is not unique to my system.
    Hope this helps.

  • Using Javascript to rasterize a layer and maintain its position with other layers.

    Trying to use javascript to rasterize just the contents of a certain layer by its name.
    It needs to maintain its position.
    I've sort of cobbled a script, but it keeps moving the rastered art to the top layer.
    Ex, top down i have Layer 4, RasterizeMe, Layer 2, Layer 1. 
    The rastered contents end up on Layer 4
    Any help would be apprecieated, or if theres a better method of doing this.
    //  Rasterize Layer by name
        if ( app.documents.length > 0 ) {
            doc = app.activeDocument;
            if(!doc.saved){
                Window.alert("This script needs to modify your document. Please save it before running this script.");
            }else{
                createRasterLayer(doc);
        }else{
            Window.alert("You must open at least one document.");
    function createRasterLayer(doc){
        var totalLayers = doc.layers.length;  //get the total number of layers in the active document
        for ( var i = 0 ; i < totalLayers ; i++){  //looping through layers            
            var currentLayer = doc.layers[i];
            var tempItem;
            if(currentLayer.visible == false) continue;   //We don't want to deal with hidden layers
            currentLayer.locked = false;                       //Unlock the layer if needed
            var layerName = new String( currentLayer.name );
            if ( layerName.indexOf("RasterizeMe") == 0 ) {
                currentLayer.hasSelectedArtwork = true;   //Select ALL in the layer
                if(doc.visibleBounds[2] == 0) continue;   // ignore empty layers
                var newoptions = new RasterizeOptions; 
                newoptions.resolution = 350;
                if ( doc.selection.length > 0 ) {
                    newGroup = app.activeDocument.groupItems.add();
                    for ( z = 0; z < doc.selection.length; z++ ) {
                        doc.selection[z].move( newGroup, ElementPlacement.INSIDE);
                    doc.rasterize (newGroup, newGroup.visibleBounds, newoptions);

    you're adding the group to the document, it will be the top most object on the top most layer
    newGroup = app.activeDocument.groupItems.add();
    use this to add the group to the current layer
    newGroup = currentLayer.groupItems.add();
    or if theres a better method of doing this.
    I would
    - loop through all layers,
    - hide them all, except the one you want to rasterize,
    - Rasterize the document
    - unhide layers

  • Photoshop crashes when I use adjustment layer HUE

    Every time I use adjustment layer for HUE/Saturation. I put the eye dropper on a specific color and move it right or left and it crashes. Wants me to reopen and try again

    I have a cloud account with Adobe 214.2.1
    Mac ver 10.10 Yosemite
    Adjustment layer Hue/Saturation open Holding down command key to use Hue slider. When I release it crashes
    Thank you for taking the time
    Izzy

Maybe you are looking for

  • How to use Querry Rn lov

    I am creating a simple search page .When i am creatingtaht page i am using lov in querry RN,but when get the result in the result RN(ie> searech results)i am getting the column as lov even i set its property to message text styletext also please any

  • Irregular N97 Mini screen issue?

    I have had my N97 Mini for nearly two years. In that time, it has been a fairly trouble-free device. A few times it has seized, had some issues, and about 18 months ago the touch screen stopped working -- but it was repaired, and I have had no issues

  • "This update is for an app downloaded with a different Apple ID. Sign in with that Apple ID and try again." But i've only ever had one apple i.d ever .... HELP!

    I bought this computer brand new from the Apple Store and when i brought it home a few apps needed to be updated. when i tried it kept telling me that another Apple I.d was used. Ive only had one Apple I.d EVER.

  • Oracle Listner and tnsnames related query

    Hi , DB verison 10.2.0.1.0. i have 3 databases running on my machine. (Listner entry) # listener.ora Network Configuration File: D:\oracle_2\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DE

  • Captivate 2 to Flash 8

    When I attempt to export an Adobe Captivate 2 project to Flash 8 I get the following error message after clicking "Import" in Flash: "Unable to import the Captivate project. The following error occurred: The Captivate project file appears corrupt, or