Skip to main content
Known Participant
September 26, 2022
Question

lines into selection

  • September 26, 2022
  • 3 replies
  • 1287 views

Hello, does a way exist  to convert a drawing (lines or not ) into selection closed zone ?

If simply not maybe with a script ?

thank you !

 

Vincent J

This topic has been closed for replies.

3 replies

Conrad_C
Community Expert
Community Expert
September 27, 2022

This sounds a little like the Live Paint feature in Adobe Illustrator. Live Paint provides some interactive flexibility for colorizing line art, including how to deal with gaps (close them or not, set gap threshold for filling, etc.). You might look into that if you don’t mind working with vector graphics. I don’t think Photoshop has anything like Live Paint.

vincentjAuthor
Known Participant
September 27, 2022

Yes, thank you. I need to vectorise my drawing before to use the live paint , isn't it ?

Conrad_C
Community Expert
Community Expert
September 27, 2022

Yes, if you want to do it with an existing Photoshop document or other image. If you are going to take the pixel document into Illustrator, you could try its Image Trace feature which converts pixels to vectors. But the results of Image Trace are not always easy to work with, even after adjusting trace options.

jane-e
Community Expert
Community Expert
September 26, 2022

One way is to trace around the outer part of the shape with the Pen tool using Path mode, then convert the path to a selection (Ctrl+Enter or use the Paths panel).

 

Jane

 

vincentjAuthor
Known Participant
September 26, 2022

Thank you Jane, but the goal is to have it as quickly as possible from a first step CTRL+ left button mouse, and transform that selection into a closed frame (yes my request was not enough clear maybe), because another way is (like you said with the Pen tool) to use the magnetic lasso tool.

 

c.pfaffenbichler
Community Expert
Community Expert
September 26, 2022

What is to determine how the individual areas are connected? 

vincentjAuthor
Known Participant
September 26, 2022

yes indeed, this is probably the difficulty that would prevent it from being "automatable". Maybe a script with a dev layer ^^.

vincentjAuthor
Known Participant
September 27, 2022

I suppose another approach would be using Working Paths and determining the two closest PathPoints of each pair and linking those up, but there could be problems. 

I guess unless one of the Scripting-savvy regulars finds the issue interesting enough it’s a moot point. 

 

Could you post a meaningful screenshot of one of the pages with the Layers Panel visible? 

Are all the elements individually different or could you use Smart Object instances for multiple ones? 


here is a screenshot with layers, the goal is to obtain the layers FILL01 & FILL02 from the layers LINE01 & LINE02 as quickly as possible (a magic button for exemple ^^) . For now I use the Magnetic lasso tool+ Paint bucket tool.