|
Post by Tpgettys on Feb 17, 2016 4:35:21 GMT
This question is really for Andrei Doubrovski , the developer of Elements+. I was wondering if there is any possibility of converting a script created using E+ into an action (*.atn). It seems very unlikely to me since scripts are in general more robust but wanted to at least ask. I would guess that going in the other direction would not be as hard. My motivation is to be able to create a simple "action" in E+ that can be shared with PSE users that do not have E+. First a *.jsx file is created in E+, and then a program to convert the jsx file to an atn file is needed.
|
|
|
Post by Andrei Doubrovski on Feb 18, 2016 5:50:59 GMT
Hello, Tom I'm afraid, converting a script to action isn't possible. However, why not share the recorded script (macro) itself? PSE users don't necessarily need Elements+ to run a script. For example, under Windows, you can run a script by dragging it from Explorer onto PSE window: Under Mac, drop the script file onto PSE icon in the Dock:
|
|
|
Post by Tpgettys on Feb 18, 2016 18:01:19 GMT
under Windows, you can run a script by dragging it from Explorer onto PSE window: That's great Andrei; thank you very much for that! Who would've thought it could be so easy?!
|
|
|
Post by Tpgettys on Mar 2, 2016 17:51:39 GMT
I have another question about scripts: is it possible to run an existing script from within a script? Specifically, I would like to run ACR from within a script and then get control back after.
|
|
|
Post by Andrei Doubrovski on Mar 4, 2016 6:35:06 GMT
Tom, 1. Yes, you can record running a script: - While recording a macro, drag the script file onto PSE window 2. You can record opening a RAW file -- but only in silent mode (without opening ACR dialog). However, there is a workaround: - Instead of using "File > Open" command, record to your macro the following script: C:\Elements+\14.0\Scripts\Commands\file - Open RAW.jsx (by dragging it into PSE, as explained in p. 1) Best regards, Andrei
|
|
|
Post by Tpgettys on Mar 24, 2016 1:34:10 GMT
I have not been successful in figuring out how to make my scripts independent of the names of the layers.
I have been trying to create a set of scripts that will work like building blocks or subroutines.
Is there perhaps a keyword in the script language that works like "this" in java, where it refers to the current object?
A related question is what happens when there is more than one layer with the same name?
|
|
|
Post by Andrei Doubrovski on Apr 9, 2016 10:19:53 GMT
As a rule a name independent script/action/macro can be created both programmatically and automatically.
* While recording a script automatically (e.g. while using E+ Macros feature), in most cases, you can invent a "name independent" algorithm.
BTW, the full Photoshop users have absolutely the same problems while recording actions. So, the workarounds are well known and thoroughly discussed already and can be on Photoshop forums.
Among other tricks, there are some "secret" shortcuts for this. For example, while recording a macro: - Press <Alt+"["> (opening square bracket) keys to select the backward (next lower) layer; - <Alt+"]"> selects the forward (next upper) layer; - <Alt+"."> (dot) selects the front (uppermost) layer; - <Alt+","> (comma) selects the back (lowermost) layer; - <Alt+Shift+"["> adds the backward layer to selection; - <Alt+Shift+"]"> adds the forward layer to selection.
** If you write a script manually, you can refer to the current layer as follows: activeDocument.activeLayer
To select the uppermost layer programmatically, insert into the code this line: activeDocument.activeLayer = activeDocument.layers[0]
|
|
|
Post by Tpgettys on Apr 10, 2016 22:51:37 GMT
Thanks very much Andrei! The keyboard shortcuts will come in handy for sure.
I don't understand what you mean here; is there something simple you can say for how that is done, or perhaps point me to a good source?
|
|
|
Post by Andrei Doubrovski on Apr 11, 2016 5:24:24 GMT
Tom, Please, describe a task/workflow you want to automate. (step by step, exactly as you do it)
I will try to suggest an alternative algorithm for it.
|
|
|
Post by Tpgettys on Apr 29, 2016 3:35:59 GMT
Hi again Andrei Doubrovski , I (believe) I have succeeded in creating a script that works as I intended; I first enter Alt-. to select the top layer and go from there. How to make it work using whatever the currently selected layer is another question, but that is low priority. Right now I just want to know about the script names: I gave it a name, but it appears that the file created is named Script 4.jsx (which I found in the folder named C:\Elements+\14.0\Scripts\My Macros); do you keep the other names separate from the script file? I tried searching for the name I gave it but nothing came up.
|
|
|
Post by Andrei Doubrovski on Apr 29, 2016 15:57:07 GMT
Hi Tom By default, "Save Macro" dialog suggests saving a new script to "C:/Elements+/14.0/Scripts/My Macros" folder under a generic name. However, you may choose any other folder on your computer and give to the script any name you wish: (Just avoid special characters like *, ^, etc.) BTW, the saved script/macro must be immediately available in the "Scripts" dialog: Best regards, Andrei
|
|
|
Post by Tpgettys on Apr 30, 2016 0:01:10 GMT
OK, I thought I had done just that, but in the heat of the moment I must have hit cancel or something. Thank you for answering.
|
|