Short Urgent Question

howdy,

how can i verify if an object that i select has a locator on it or it intersects with a certain class of object? how can i tell the script "check if my selected object intersects ANY onject that inludes the string "blabla" " ?

thanks a lot!

Well, first of a locator has no physical size so it cannot intersect with anything, what you see is just a pure GUI gimic, it is not geometry. that does not mean you couldn't put in some real geometry that can actually intersect.

Secondly you could do that, you do not however want to necessarily do it, it all deepens on what you are EXACTLY after. Reason being that intersection calculation is the 4th most time consuming thing in whole of 3 graphics. Computers don't see or feel anything so they need to test every single piece of the geometry in the scene to know if theres a intersection or not.

Because its a bit hwvy ifd use the api for this. Not that mel cant do it but your performance will be affected.

hey, thanks for the great reply!

my script is a really simple one, wont be too time consuming, especially that i decided to modify it a bit.

it will do like this:
it will loop through some objects and check each if it intersects with one specific object.

MY PROBLEM NOW IS (and i would be really happy if you could answer):

can i tell maya "if a warning message appeared > do this, else blabla"
or must i check if there is a locator selected after the intersection command? 'cause it makes locators and i think it also selects them or just the last one. what command could i use to ask the name of the selected object. or if i clear the selection before, i must just ask if ANYTHING is selected, but i still don't know how to do it

help would be very appreciated,

and thanks again to joojaa for answering this sort-of ambiguous question

PS:

if i have 2 points on a wavy curve, and i want to find out the coordonates of the point that is at the same curve length from the other 2, and sits on the curve, what could i do?