Copy link to clipboard
Copied
I trying to start one script only if have one layer clicked.
If dont have any layer clicked show one message.
I tried some ideas without success.
Help!
Thanks, Rei.
Copy link to clipboard
Copied
Please explain the intended process more clearly.
Copy link to clipboard
Copied
Are you working with ExtendScript or CEP panel?
It I am not mistaken ExtendScript cannot listen to DOM while CEP can.
So, in case you work with ExtendScript, you will have to determine if layer is selected by clicking somewhere in your ScriptUI.
Copy link to clipboard
Copied
Script Events Manager would allow to run a Script at a certain event but I think I do not fully understand what the OP meant exactly.
It seems possible they simply meant a check in a Script that would determine to perform one thing if one Layer is selected and another if no Layer is selected.
Copy link to clipboard
Copied
Pfaffenbichler, thanks for the idea...I will try.
Copy link to clipboard
Copied
Hi Tomas, I´m working in a CEP panel.
Thanks for your help.