Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

JSX and pressed alt key

$
0
0

Hallo,

I want to use the "Crop and Straighten Photos" plugin in a Photoshop action. But I want to get only one picture. So if I use the plugin manual, I hold the alt key pressed down. Photoshop then produce only one cropped picture.

But if I record an action with that plugin, the pressed key is not recognized. So I converted the action to a javascript-file and this is the result:

 

  function step1(enabled, withDialog) {    if (enabled != undefined && !enabled)      return;    var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);    executeAction(sTID('CropPhotosAuto0001'), undefined, dialogMode);  };

 

I think, there are two ways for me to let the script do what I want:

1) Give the "CropPhotosAuto0001"-method-call a param, that tell the plugin, it has to produce only one picture. But I do not found a documentation of this method, so I do not know the syntax of the param.

2) Insert some code to change the state of the jsx-script: I am not familiar with jsx, but I think, there are some event variables that indicate a pressed key or a pressed mouse button, plugins recognize.

 

Hopefully you can help me.

Thanks a lot!


Viewing all articles
Browse latest Browse all 12244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>