Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Scripting in UXP Developer tools

New Here ,
Oct 09, 2024 Oct 09, 2024

So I'm trying to create a plugin in Photoshop using UXP developer tools.

What I'm trying to achieve:

When i click "Play Action", i want the photoshop to play the commands "command + j" and then "option + [". Command j performs duplication of the active layer, option j performs selection of backward layer.

I can do it manually but it's tiring to work on multiple documents by doing it manually.

 

 

If it's possible,

I would rather want the script to do

Constantly check for active selection > if there is an active selection > perform the above mentioned commands.

 

Please check the attached document.

TOPICS
Actions and scripting , macOS
313
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Oct 09, 2024 Oct 09, 2024

Try recording it as an action and then saving the batchplay result.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 09, 2024 Oct 09, 2024
LATEST

Im sorry if this dumb, im using Ai to create this. the interface is greate but when executing the action, nothing happends. 

"

const photoshop = require('photoshop'); // Import the Photoshop module
const app = photoshop.app;"
is this correct? im using Photoshop Beta.  
and how do i write in the script to identify the active selection {marching ants) in the layer?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines