Skip to content

This batchPlay could help #6

Description

@jardicc

This code snippet could help you to get more data about UI. But change panelID of course.

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

async function actionCommands() {
   const result = await batchPlay(
      [
        panelCommand()
      ],
      {}
   );
   console.log(result);
}

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

await runModalFunction();


function panelCommand() {
    return {
        _obj: "owlAction",
        _target: [
                       {
                  _ref: "application",
                  _enum: "ordinal",
                  _value: "targetEnum"
               }
        ],
        "owlCommand": "getPanelInfo",
        owlPanelID: `panelid.static.properties`
        
    };
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions