a way to only select objects that intersect in one spline.

hi
sorry for asking help always~
that is my limit

i wonder a way to only select objects that intersect in one spline.

i seen many www site
but i did not found good code

pls help ~

Thanks in advance

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

it isn't an easy task especially if spline contains holes

dussla's picture

.

Thank you for reply
There is no hole
Only 1 rectangle spline

jahman's picture

.

this will select all objects which bounding boxes are intersecting with the rectangle's bounding box

(
  rect = selection[1]
  select (for obj in objects where intersects obj rect collect obj)
  deselect rect
)

if your rectangle is rotated about Z axis then it requires a bit trickier solution

dussla's picture

.

Wow
thank you
I will test
Really thank you

dussla's picture

.

Wow
thank you
I will test
Really thank you

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.