Select interseptions objects

I need this script:
Large group of object, for example - heaps of rocks on the ground.
One long complicated object, for example - road. This object curved and interesct with many of little objects - this rocks, bush, grass etc.
I need script what select of objects what intersepted with this complicated long objects.
It hard to develop?

sorry my english.

Comments

Comment viewing options

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

Not realy

Thanks, but it work not like i need.
I try to make Box array and make torus intersected many of boxes. When i use script when all selected it slect only torus.
If i select only torus and run script - it make nothing selected.
(and if i try add some tolerance it freez 3d max, i use 2011 64bit)
Maybe i do something wrong?

I try to illustrated what i need in attached jpg
It must select all boxes what interesepted with "master" object - torus in this example.

AttachmentSize
intersect2.jpg 83.93 KB
JokerMartini's picture

done

I've got a script that does just that. Check it out. Let me know what you think. Ways to improve and what not.

http://JokerMartini.com/2011/10/10/geo-grand-prix/

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

br0t's picture

if you only test for their

if you only test for their bounding box, this is very easy. if it has to be more precise, which in your case i fear it has to be, it gets more complicated and i dont know how to do it right now. i think you might have to raytrace from the surface of one object to another ones and see if you hit, which would be very costly on performance. hm... maybe someone else has a smart idea :P

Never get low & slow & out of ideas

Comment viewing options

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