6 Replies Latest reply on Sep 13, 2016 3:15 AM by Joachim Hiller

    CameraRaw Blackandwhite automatic

    Joachim Hiller Level 1

      Is there a way when CameraRawfilter to set the blackandwhite implementation on automaticCameraRaw.jpg

        • 1. Re: CameraRaw Blackandwhite automatic
          JJMack Most Valuable Participant

          If you want to bypass ACR Dialog and not use the files current ACR settings if they have been set.  There may be a way.  The Image Processor script  and Image Processor Pro plug-in script have a option where it will open the First RAW File through ACR's Dialog to allow you to set ACR setting you want all the RAW files in the batch to be  processed with.  The Script uses the set of setting  you set to process the remaining raw files in the batch.

           

          So it seem to me If you have a set of ACR setting you want to use for all ACR conversion a script may be able too do what you want.  Look At what these two script do to Bypass ACR dialog and use ACR settings it has in hand.

           

          You could also try setting your ACR defaults settings to  use those settings.

          • 2. Re: CameraRaw Blackandwhite automatic
            Joachim Hiller Level 1

            I want to to create a look for a picture. Not for a raw image. Is there an option for the setting "for the automatic mode"

            //This is the BlackandWhite option

            desc8.putBoolean( idCtoG, true );
            but I just find no for standard or automatic

            • 3. Re: CameraRaw Blackandwhite automatic
              JJMack Most Valuable Participant

              What you show looks like part of a scriptlistener action manager step code.  Even when you have the complete  step's code to me they hard to make since of.  "desc8.putBoolean( idCtoG, true );" greek to me. A single boolean is surly not all that is involved  in BW conversion.

               

              In an action or script you can automate adding a BW adjustment layer. You showed some ACR setting though???

              • 4. Re: CameraRaw Blackandwhite automatic
                Joachim Hiller Level 1

                Sorry

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

                var idAdobeCameraRawFilter = stringIDToTypeID( "Adobe Camera Raw Filter" );

                    var desc10 = new ActionDescriptor();

                    var idCMod = charIDToTypeID( "CMod" );

                    desc10.putString( idCMod, """Filter""" );

                    var idSett = charIDToTypeID( "Sett" );

                    var idSett = charIDToTypeID( "Sett" );

                    var idCst = charIDToTypeID( "Cst " );

                    desc10.putEnumerated( idSett, idSett, idCst );

                    var idWBal = charIDToTypeID( "WBal" );

                    var idWBal = charIDToTypeID( "WBal" );

                    var idAsSh = charIDToTypeID( "AsSh" );

                    desc10.putEnumerated( idWBal, idWBal, idAsSh );

                    var idTemp = charIDToTypeID( "Temp" );

                    desc10.putInteger( idTemp, 0 );

                    var idTint = charIDToTypeID( "Tint" );

                    desc10.putInteger( idTint, 0 );

                    var idAWBV = charIDToTypeID( "AWBV" );

                    desc10.putInteger( idAWBV, 134348800 );

                    var idCtoG = charIDToTypeID( "CtoG" );

                    desc10.putBoolean( idCtoG, true );

                    var idShrp = charIDToTypeID( "Shrp" );

                    desc10.putInteger( idShrp, 0 );

                    var idLNR = charIDToTypeID( "LNR " );

                    desc10.putInteger( idLNR, 0 );

                    var idCNR = charIDToTypeID( "CNR " );

                    desc10.putInteger( idCNR, 0 );

                    var idVigA = charIDToTypeID( "VigA" );

                    desc10.putInteger( idVigA, 0 );

                    var idBlkB = charIDToTypeID( "BlkB" );

                    desc10.putInteger( idBlkB, 0 );

                    var idRHue = charIDToTypeID( "RHue" );

                    desc10.putInteger( idRHue, 0 );

                    var idRSat = charIDToTypeID( "RSat" );

                    desc10.putInteger( idRSat, 0 );

                    var idGHue = charIDToTypeID( "GHue" );

                    desc10.putInteger( idGHue, 0 );

                    var idGSat = charIDToTypeID( "GSat" );

                    desc10.putInteger( idGSat, 0 );

                    var idBHue = charIDToTypeID( "BHue" );

                    desc10.putInteger( idBHue, 0 );

                    var idBSat = charIDToTypeID( "BSat" );

                    desc10.putInteger( idBSat, 0 );

                    var idGM_R = charIDToTypeID( "GM_R" );

                    desc10.putInteger( idGM_R, -3 );

                    var idGM_O = charIDToTypeID( "GM_O" );

                    desc10.putInteger( idGM_O, -12 );

                    var idGM_Y = charIDToTypeID( "GM_Y" );

                    desc10.putInteger( idGM_Y, -16 );

                    var idGM_G = charIDToTypeID( "GM_G" );

                    desc10.putInteger( idGM_G, -23 );

                    var idGM_A = charIDToTypeID( "GM_A" );

                    desc10.putInteger( idGM_A, -20 );

                    var idGM_B = charIDToTypeID( "GM_B" );

                    desc10.putInteger( idGM_B, 4 );

                    var idGM_P = charIDToTypeID( "GM_P" );

                    desc10.putInteger( idGM_P, 13 );

                    var idGM_M = charIDToTypeID( "GM_M" );

                    desc10.putInteger( idGM_M, 6 );

                    var idSTSH = charIDToTypeID( "STSH" );

                    desc10.putInteger( idSTSH, 0 );

                    var idSTSS = charIDToTypeID( "STSS" );

                    desc10.putInteger( idSTSS, 0 );

                    var idSTHH = charIDToTypeID( "STHH" );

                    desc10.putInteger( idSTHH, 0 );

                    var idSTHS = charIDToTypeID( "STHS" );

                    desc10.putInteger( idSTHS, 0 );

                    var idSTB = charIDToTypeID( "STB " );

                    desc10.putInteger( idSTB, 0 );

                    var idPC_S = charIDToTypeID( "PC_S" );

                    desc10.putInteger( idPC_S, 0 );

                    var idPC_D = charIDToTypeID( "PC_D" );

                    desc10.putInteger( idPC_D, 0 );

                    var idPC_L = charIDToTypeID( "PC_L" );

                    desc10.putInteger( idPC_L, 0 );

                    var idPC_H = charIDToTypeID( "PC_H" );

                    desc10.putInteger( idPC_H, 0 );

                    var idPC_one = charIDToTypeID( "PC_1" );

                    desc10.putInteger( idPC_one, 25 );

                    var idPC_two = charIDToTypeID( "PC_2" );

                    desc10.putInteger( idPC_two, 50 );

                    var idPC_three = charIDToTypeID( "PC_3" );

                    desc10.putInteger( idPC_three, 75 );

                    var idShpR = charIDToTypeID( "ShpR" );

                    desc10.putDouble( idShpR, 1.000000 );

                    var idShpD = charIDToTypeID( "ShpD" );

                    desc10.putInteger( idShpD, 25 );

                    var idShpM = charIDToTypeID( "ShpM" );

                    desc10.putInteger( idShpM, 0 );

                    var idPCVA = charIDToTypeID( "PCVA" );

                    desc10.putInteger( idPCVA, 0 );

                    var idGRNA = charIDToTypeID( "GRNA" );

                    desc10.putInteger( idGRNA, 0 );

                    var idLPEn = charIDToTypeID( "LPEn" );

                    desc10.putInteger( idLPEn, 0 );

                    var idMDis = charIDToTypeID( "MDis" );

                    desc10.putInteger( idMDis, 0 );

                    var idPerV = charIDToTypeID( "PerV" );

                    desc10.putInteger( idPerV, 0 );

                    var idPerH = charIDToTypeID( "PerH" );

                    desc10.putInteger( idPerH, 0 );

                    var idPerR = charIDToTypeID( "PerR" );

                    desc10.putDouble( idPerR, 0.000000 );

                    var idPerS = charIDToTypeID( "PerS" );

                    desc10.putInteger( idPerS, 100 );

                    var idPerA = charIDToTypeID( "PerA" );

                    desc10.putInteger( idPerA, 0 );

                    var idPerU = charIDToTypeID( "PerU" );

                    desc10.putInteger( idPerU, 0 );

                    var idPerX = charIDToTypeID( "PerX" );

                    desc10.putDouble( idPerX, 0.000000 );

                    var idPerY = charIDToTypeID( "PerY" );

                    desc10.putDouble( idPerY, 0.000000 );

                    var idAuCA = charIDToTypeID( "AuCA" );

                    desc10.putInteger( idAuCA, 0 );

                    var idExonetwo = charIDToTypeID( "Ex12" );

                    desc10.putDouble( idExonetwo, 0.000000 );

                    var idCronetwo = charIDToTypeID( "Cr12" );

                    desc10.putInteger( idCronetwo, 0 );

                    var idHionetwo = charIDToTypeID( "Hi12" );

                    desc10.putInteger( idHionetwo, 0 );

                    var idShonetwo = charIDToTypeID( "Sh12" );

                    desc10.putInteger( idShonetwo, 0 );

                    var idWhonetwo = charIDToTypeID( "Wh12" );

                    desc10.putInteger( idWhonetwo, 0 );

                    var idBkonetwo = charIDToTypeID( "Bk12" );

                    desc10.putInteger( idBkonetwo, 0 );

                    var idClonetwo = charIDToTypeID( "Cl12" );

                    desc10.putInteger( idClonetwo, 0 );

                    var idDhze = charIDToTypeID( "Dhze" );

                    desc10.putInteger( idDhze, 0 );

                    var idTMMs = charIDToTypeID( "TMMs" );

                    desc10.putInteger( idTMMs, 0 );

                    var idCrv = charIDToTypeID( "Crv " );

                        var list14 = new ActionList();

                        list14.putInteger( 0 );

                        list14.putInteger( 0 );

                        list14.putInteger( 255 );

                        list14.putInteger( 255 );

                    desc10.putList( idCrv, list14 );

                    var idCrvR = charIDToTypeID( "CrvR" );

                        var list15 = new ActionList();

                        list15.putInteger( 0 );

                        list15.putInteger( 0 );

                        list15.putInteger( 255 );

                        list15.putInteger( 255 );

                    desc10.putList( idCrvR, list15 );

                    var idCrvG = charIDToTypeID( "CrvG" );

                        var list16 = new ActionList();

                        list16.putInteger( 0 );

                        list16.putInteger( 0 );

                        list16.putInteger( 255 );

                        list16.putInteger( 255 );

                    desc10.putList( idCrvG, list16 );

                    var idCrvB = charIDToTypeID( "CrvB" );

                        var list17 = new ActionList();

                        list17.putInteger( 0 );

                        list17.putInteger( 0 );

                        list17.putInteger( 255 );

                        list17.putInteger( 255 );

                    desc10.putList( idCrvB, list17 );

                    var idCamP = charIDToTypeID( "CamP" );

                    desc10.putString( idCamP, """Embedded""" );

                    var idCP_D = charIDToTypeID( "CP_D" );

                    desc10.putString( idCP_D, """54650A341B5B5CCAE8442D0B43A92BCE""" );

                    var idPrVe = charIDToTypeID( "PrVe" );

                    desc10.putInteger( idPrVe, 101122048 );

                    var idRtch = charIDToTypeID( "Rtch" );

                    desc10.putString( idRtch, """""" );

                    var idREye = charIDToTypeID( "REye" );

                    desc10.putString( idREye, """""" );

                    var idLCs = charIDToTypeID( "LCs " );

                    desc10.putString( idLCs, """""" );

                    var idUpri = charIDToTypeID( "Upri" );

                    desc10.putString( idUpri, """<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c011 79.156380, 2014/05/21-23:38:37        ">

                <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

                  <rdf:Description rdf:about=""

                    xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"

                   crs:UprightVersion="151388160"

                   crs:UprightCenterMode="0"

                   crs:UprightCenterNormX="0.5"

                   crs:UprightCenterNormY="0.5"

                   crs:UprightFocalMode="0"

                   crs:UprightFocalLength35mm="35"

                   crs:UprightPreview="False"

                   crs:UprightTransformCount="6"/>

                </rdf:RDF>

                </x:xmpmeta>

                """ );

                    var idGuUr = charIDToTypeID( "GuUr" );

                    desc10.putString( idGuUr, """<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.6-c011 79.156380, 2014/05/21-23:38:37        ">

                <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">

                  <rdf:Description rdf:about=""

                    xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/"

                   crs:UprightFourSegmentsCount="0"/>

                </rdf:RDF>

                </x:xmpmeta>

                """ );

                executeAction( idAdobeCameraRawFilter, desc10, DialogModes.NO );


                that is the whole statement. I know almost all values for which they stand.

                • 5. Re: CameraRaw Blackandwhite automatic
                  Level 1

                  clean code

                   

                   

                   

                  // CAMERA RAW BN.JSX

                  //

                   

                  cTID = function(s) { return app.charIDToTypeID(s); };

                  sTID = function(s) { return app.stringIDToTypeID(s); };

                   

                  //

                  //==================== CAMERA RAW BN ==============

                  //

                  function CAMERARAWBN() {

                    // Filtro Camera Raw

                    function step1(enabled, withDialog) {

                      if (enabled != undefined && !enabled)

                        return;

                      var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);

                      var desc1 = new ActionDescriptor();

                      desc1.putString(cTID('CMod'), "Filter");

                      desc1.putEnumerated(cTID('Sett'), cTID('Sett'), cTID('Cst '));

                      desc1.putEnumerated(cTID('WBal'), cTID('WBal'), cTID('AsSh'));

                      desc1.putInteger(cTID('AWBV'), 134348800);

                      desc1.putBoolean(cTID('CtoG'), true); 

                      desc1.putInteger(cTID('GM_R'), -11);

                      desc1.putInteger(cTID('GM_O'), -20);

                      desc1.putInteger(cTID('GM_Y'), -24);

                      desc1.putInteger(cTID('GM_G'), -27);

                      desc1.putInteger(cTID('GM_A'), -16);

                      desc1.putInteger(cTID('GM_B'), 14);

                      desc1.putInteger(cTID('GM_P'), 17);

                      desc1.putInteger(cTID('GM_M'), 3); 

                      desc1.putInteger(cTID('PC_1'), 25);

                      desc1.putInteger(cTID('PC_2'), 50);

                      desc1.putInteger(cTID('PC_3'), 75);

                      desc1.putDouble(cTID('ShpR'), 1);

                      desc1.putInteger(cTID('ShpD'), 25); 

                      desc1.putInteger(cTID('PerS'), 100); 

                      var list1 = new ActionList();

                      list1.putInteger(0);

                      list1.putInteger(0);

                      list1.putInteger(255);

                      list1.putInteger(255);

                      desc1.putList(cTID('Crv '), list1);

                      var list2 = new ActionList();

                      list2.putInteger(0);

                      list2.putInteger(0);

                      list2.putInteger(255);

                      list2.putInteger(255);

                      desc1.putList(cTID('CrvR'), list2);

                      var list3 = new ActionList();

                      list3.putInteger(0);

                      list3.putInteger(0);

                      list3.putInteger(255);

                      list3.putInteger(255);

                      desc1.putList(cTID('CrvG'), list3);

                      var list4 = new ActionList();

                      list4.putInteger(0);

                      list4.putInteger(0);

                      list4.putInteger(255);

                      list4.putInteger(255);

                      desc1.putList(cTID('CrvB'), list4);

                      desc1.putString(cTID('CamP'), "Embedded");

                      desc1.putString(cTID('CP_D'), "54650A341B5B5CCAE8442D0B43A92BCE");

                      desc1.putInteger(cTID('PrVe'), 101122048);

                      desc1.putString(cTID('Rtch'), "");

                      desc1.putString(cTID('REye'), "");

                      desc1.putString(cTID('LCs '), "");

                      desc1.putString(cTID('Upri'), "");

                      executeAction(sTID('Adobe Camera Raw Filter'), desc1, dialogMode);

                    };

                    step1();      // Filtro Camera Raw

                  };

                  CAMERARAWBN.main = function () {

                    CAMERARAWBN();

                  };

                  CAMERARAWBN.main();

                  • 6. Re: CameraRaw Blackandwhite automatic
                    Joachim Hiller Level 1

                    thank you , but I would like to make the black and white conversion automatically because it uses for different images