SELECT INTERSEPTIONS OBJECTS


/ Published in: Maxscript
Save to your folder(s)

select all object that intersect each other


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.