Is this possible to get the Hue Saturation adjustment Layer value using the Photoshop API?

Hello everyOne!
Is this possible to get the Hue Saturation adjustment Layer value using the Photoshop API / Photoshop script?

It is not in DOM API yet and probably won’t be for a while.
There was a change in the recent version of Photoshop. So using action manager code / batchPlay …you have to take it from different place in different format.

const {executeAsModal} = require("photoshop").core;
const {batchPlay} = require("photoshop").action;

async function actionCommands() {
   const result = await batchPlay(
      [
         {
            _obj: "get",
            _target: [
               {
                  _property: "adjustment"
               },
               {
                  _ref: "layer",
                  _id: 2 // change this
               },
               {
                  _ref: "document",
                  _id: 59 // change this
               }
            ],
            _options: {
               dialogOptions: "dontDisplay"
            }
         }
      ],
      {}
   );
   
   const pinned = result[0].adjustment[0].adjustment[0].hue;
}

async function runModalFunction() {
   await executeAsModal(actionCommands, {"commandName": "Action Commands"});
}

await runModalFunction();

1 Like