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

[scripting] How to detect if the Smart Filters mask is selected?

Advocate ,
Jun 23, 2020 Jun 23, 2020

Copy link to clipboard

Copied

I could not detect this by checking for a Layer name of 'Smart Filters'.

How can I detect if the Smart Filters mask is active/selected, please?

 

From https://community.adobe.com/t5/photoshop/smart-filter/td-p/10758108?page=1 I've tried this snippet but it alerts "false" whether I'm on or off the mask ...

 

sTT = stringIDToTypeID; (ref = new ActionReference()).putProperty(sTT('property'), iI = sTT('itemIndex'))

ref.putEnumerated(sTT('channel'), sTT('ordinal'), sTT('targetEnum')), alert(!(executeActionGet(ref).getInteger(iI) > 3))

 

Thanks!

TOPICS
Actions and scripting

Views

235

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
no replies

Have something to add?

Join the conversation
Adobe