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

How to pathfind an interior selection gap using script?

Community Expert ,
Jan 02, 2024 Jan 02, 2024

Hi all, thoroughly stumped on this one, probably due to my lack of PS chops. I have a variety of transparent pngs. Some of them have an interior gap after an expand/smooth operation. Is there a way to fix these interior gaps programatically in jsx? Thanks. 

brianp311_0-1704233684062.png

 

TOPICS
Actions and scripting
200
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

correct answers 1 Correct answer

Community Expert , Jan 03, 2024 Jan 03, 2024

A Script can store the Selection, convert the Selection to a Work Path, then use only the first subPathItem to create a new Selection (or depending on the needs contract it and add it the the original Selection so the original edge detail/softness is maintained). 

Translate
Adobe
Explorer ,
Jan 02, 2024 Jan 02, 2024

I do that in my plugin https://lightningplugins.com
I remember it being a bit tricky, but essentially I turn the selection into a shape and then combine the shapes and then make a new selection from that. I am sure there are better ways but that is what I came up with.

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
Community Expert ,
Jan 03, 2024 Jan 03, 2024
LATEST

A Script can store the Selection, convert the Selection to a Work Path, then use only the first subPathItem to create a new Selection (or depending on the needs contract it and add it the the original Selection so the original edge detail/softness is maintained). 

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