Select Interseptions Objects

Submitted by:David Villa

Date added:18 May, 2014

Category:Maxscript

Select all object that intersect each other

Tags: select objects , interseptions objects

Code Snippet:

    fn IntersectsSel =
(
problemObjs = #()
safeNodes = selection as array
testers = for i in objects where (findItem safeNodes i) == 0 collect i

for obj in safeNodes do --//test each object in the selection
(
for p in testers where intersects obj p do appendIfUnique problemObjs p --//test the intersection to the scene objects
)
select problemObjs
)
IntersectsSel()
 
 

Comments