ScriptSpot home

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)
Panteleev Sergey

.

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

Reply to dussla
Panteleev Sergey

.

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