ScriptSpot

Forum topic · General Scripting

Intersects Help !

By kimarotta · 2012-07-13

Downloads
Description

Hi ... I need a help... I have a scene imagem attached, where I want pick the objects in intersect with other objects... But "intersects" don't work fine, intersect pick objects in box area of object and not the real area ... is there any way?


	for o in objects do (
	   tester = intersects $Ref o
	   if tester == true then ( append InterArr o )	
	)
	select interArr

In image attached Obj in red should not be selected and in blue is a obj $ref.

thanks in advanced

Comments (4)

JokerMartini · 2012-07-18

Be sure to really read every line and break apart Denis's example when using the volume select because if implemented wrong can execute with outrageous times on large selections/objects.

kimarotta · 2012-07-18

Yeah I have this problem... because I tried in large selections... and the time was not possible .... I will try again, but I thought and I will try also a select by vector position.

Is faster to do a loop taking in many objects by vector position or volume selection is faster, what you think?

miauu · 2012-07-13

VOlume Select modifier is the answer. Search cgtalk for the thread, where DenisT showed how to use it.

kimarotta · 2012-07-13

Good Idea... I will try this...

Thanks a million...