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

Target selection with code - and flattening a layer's transparency after that

Engaged ,
Nov 06, 2019 Nov 06, 2019

Hi I am trying to make a layer select by targeting it... and for whatever reason coding doesn't seem to work at all for that.

More of a superficial selection, not 'targeting' in reality

 

this stuff in the documentation has me a little scared too.

 
 

If I select by hand and run the flatten transparency code, it works totally fine. If I let the code do the selecting and flattening it doesn't flatten the layer itself -- only its contents (which is no good because I have stroke apperance attributes on it I want flattened as well)I fear code is doing more of a 'soft select' ... which I can simulate by hand too if I do target just merely highlight the layer with a selection.

 

h3.jpg

h4.jpg

I need for this to happen with code, no human interventions -- no hands on approach.
Is there something I am missing?? Some term or soemthing.
Just seems like in the year 2019, we should be able to programatically target a selection (like by hand thru the GUI behaves)

If anyone has feedback on this specific issue, it would be a HUGE hep -- currently going nuts as this is not working.
simulating a mouse click or something just seems goofy to me and not very practical.


Thanks for taking the time to read this,
-Ryan

TOPICS
Scripting
195
Translate
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