ScriptSpot

Forum topic · Scripts Wanted

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

By dussla · 2019-08-17

Description

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 (5)

.

jahman · 2019-08-17

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

.

dussla · 2019-08-17

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

.

jahman · 2019-08-17

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 · 2019-08-17

Wow
thank you
I will test
Really thank you

.

dussla · 2019-08-17

Wow
thank you
I will test
Really thank you