4 Replies Latest reply on Jul 21, 2011 2:42 PM by Muppet Mark

    [ANN] Public release of JSON Action Manager 1.0

    Mikaeru69 Level 3

      Greetings!

      I've been developing an alternative way of programming Photoshop in Javascript, based on JSON, as a more human-readable replacement for the code generated by the "ScriptingListener".

      For instance, creating a Brightness/Contrast adjustment layer can be written like this:

      
      //@includepath "~/JSON Action Manager/"
      //@include "jamEngine.js"
      
      jamEngine.jsonPlay
      (
          "make",
          {
              "target":
              {
                  "<reference>": { "adjustmentLayer": { "<class>": null } }
              },
              "using":
              {
                  "<object>":
                  {
                      "adjustmentLayer":
                      {
                          "type":
                          {
                              "<object>":
                              {
                                  "brightnessContrast":
                                  {
                                      "brightness": { "<integer>": -15 },
                                      "contrast": { "<integer>": 30 }
                                  }
                              }
                          }
                      }
                  }
              }
          }
      );
      
      

      Version 1.0 of the JSON Action Manager scripting library in JavaScript for Photoshop is available; it is fully open source and is licensed using GPLv3. Some sample code is also provided.

      Version 1.0 of the JSON Action Toolbox automation plug-in for Photoshop (Mac OS X only) is also available; it is being distributed as Freeware.

      For more information, please visit my blog Tonton Pixel dedicated to Photoshop Scripting.

      -- Mikaeru