cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Intersect with selection

Intersect with selection

I was wondering if I'm the only one desperately waiting for basic selection feature that is available in photoshop for many years. In windows it used by shift+alt while having already active selection. Could this be please implemented finally?

9 Comments
shawnolson
Alumni
Status changed to: Gathering Support

Thanks for your idea. Until if/when we implement officially, here are a couple macroscripts I put together to accomplish this right now in the attached file. This works on scene node selection (so not sub-object selection). The first macro will select anything intersection the bounds of the current selection as a whole; the second will only find objects that intersect with at least one of the objects in the current selection.

 

macroscript SelectIntersectingObjects
category:"Examples"
buttonText:"Select Intersecting"
tooltip:"Select objects intersecting the current selection"
(
	on isChecked do selection.count > 0
	
	on execute do (
		local b = box3 $.min $.max
		local collection = #()
		for obj in objects do (
			if (intersects b (box3 obj.min obj.max)) then (
				append collection obj
			)
		)
		select collection
	)
)

macroscript SelectIntersectingObjectsPrecise
category:"Examples"
buttonText:"Select Intersecting"
tooltip:"Select objects intersecting the current selection"
(
	on isChecked do selection.count > 0
	
	on execute do (
		
		local boundaries = for obj in selection collect box3 obj.min obj.max
		
		local collection = #()
		for obj in objects do (
			local intersectionFound = false
			for orig in boundaries  while intersectionFound == false do (
				
				intersectionFound = intersects orig (box3 obj.min obj.max)
				if intersectionFound then (
					append collection obj
				)
			)
		)
		select collection
	)
)

 

shawnolson
Alumni
Status changed to: Future Consideration
 
Daniellestak
Explorer

Thank you scripts! I would find the most useful the sub object selection though 😄 

shawnolson
Alumni

Understood. For object selection, it was simple enough to come up with a solution in a few minutes. Accounting for sub-objects mode would take more time. We'll review it.

teratron
Advocate

This would be great!
You might be able to get by with the ribbon stored selections stuff in the mean time.

teratron_0-1646859168186.png

 

Daniellestak
Explorer

yes thanks!That is ineffective though 😄 

Excellent idea!

It's funny thing you can do this with the selections you stored and not while selecting in the first place. Let's include this where it is more obviously needed!

 

 

teratron
Advocate

@Kranos_Orphydian  Check out the fill and fill hole options in the ribbon for that.
https://youtu.be/q82CNbAXK_0?t=46

@teratron Yes, my bad, I think Ive seen Arrimus using it but not from the ribbon (always though he uses some scripts etc)

 

I wish these tools worked with Selection previews and without needing to select a subobject inside or outside the loop you want to get fill out. It's more elegant his way. Should also work with some shortcuts within the main Selection tool, therefore being modes of it, to step away from this one button for every operation concept and not to be needed to open the entire ribbon which I detest.

 

Also, is there an easy way to select a loop of edges and then to fill the hole with polygons?

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea