ScriptSpot home

Forum topic · General Scripting

Intersects Help !

By Willian Kim · 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

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.

Reply to JokerMartini
Willian Kim

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

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

Reply to miauu
Willian Kim

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

Thanks a million...