Skip to main content
Inspiring
July 10, 2023
Question

Expand color range selections to up or down only

  • July 10, 2023
  • 3 replies
  • 339 views

for example i selected some areas like following: 

 

Now i want to expand above selections to following: 

 

If have any trick or script for this, please provide here.  

I hope you fully understand what I mean because this was the simplest possible explanation. 

 

This topic has been closed for replies.

3 replies

Stephen Marsh
Community Expert
Community Expert
July 10, 2023

The following script from @c.pfaffenbichler will create a rectangular selection from the bounding area of an arbitrary selection.

 

Inspiring
July 10, 2023
quote

The following script from @c.pfaffenbichler will create a rectangular selection from the bounding area of an arbitrary selection.

 


By @Stephen Marsh

tnq but it not working for me and converted following selections to full image size selection! 

 


By @Stephen Marsh

no it is only for left side of chart images, even in left side of chart images it make rectangular selection on all of characters and not each character one by one!

Stephen Marsh
Community Expert
Community Expert
July 10, 2023

@abolfazl29032603daba 

 

So, firstly you want to turn multiple selections that may have any arbitrary shape, into a rectangular selection at the same bounding area... But you still wish to retain separate selections, not have them merged.

 

Secondly you want to expand the centered selection in the height a given distance in pixels.

 

Probably both together, but I see it as two separate main steps from a scripting point of view (not to mention needing to work on each separate selection one at a time).

Bojan Živković11378569
Community Expert
Community Expert
July 10, 2023

There is built-in expand function to expand selection but without control to limit sides of expansion.

 

I will tag scripters that may help you: @c.pfaffenbichler @Stephen Marsh @jazz-y @r-bin @Chuck Uebele 

 

If you want to expand manually then use Transform Selection and drag side that you want to expand.