Highlighted

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

Explorer ,
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

65

Likes

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

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

Explorer ,
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

66

Likes

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
Jun 23, 2020 1

Have something to add?

Join the conversation