Posted By

barigazy on 07/17/12


Tagged

select


Versions (?)

SELECT INTERSEPTIONS OBJECTS


 / Published in: Maxscript
 

select all object that intersect each other

  1. fn IntersectsSel =
  2. (
  3. problemObjs = #()
  4. safeNodes = selection as array
  5. testers = for i in objects where (findItem safeNodes i) == 0 collect i
  6.  
  7. for obj in safeNodes do --//test each object in the selection
  8. (
  9. for p in testers where intersects obj p do appendIfUnique problemObjs p --//test the intersection to the scene objects
  10. )
  11. select problemObjs
  12. )
  13. IntersectsSel()

Report this snippet  

You need to login to post a comment.