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

Start script if one layer is clicked

Explorer ,
Apr 04, 2017 Apr 04, 2017

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.

TOPICS
Actions and scripting

Views

368

Translate

Translate

Report

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
Community Expert ,
Apr 05, 2017 Apr 05, 2017

Copy link to clipboard

Copied

Please explain the intended process more clearly.

Votes

Translate

Translate

Report

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
Advocate ,
Apr 05, 2017 Apr 05, 2017

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.

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 05, 2017 Apr 05, 2017

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.

Votes

Translate

Translate

Report

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
Explorer ,
Apr 05, 2017 Apr 05, 2017

Copy link to clipboard

Copied

LATEST

Pfaffenbichler, thanks for the idea...I will try.

Votes

Translate

Translate

Report

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
Explorer ,
Apr 05, 2017 Apr 05, 2017

Copy link to clipboard

Copied

Hi Tomas, I´m working in a CEP panel.
Thanks for your help.

Votes

Translate

Translate

Report

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