thankyou for your help mate. i will definately look into this;)
Sam

On Saturday, August 9, 2014 9:50:25 PM UTC+1, Janos Hunyadi wrote:
>
> Take a look at the MMeshIntersetor, or the MFnMesh (getClosestPoint) in 
> the Maya API. You can search for the closest point on the mesh to a given 
> point.
>
> You need to dive into the api though.
>
> Janos
> , 
> On Friday, August 8, 2014 6:59:52 AM UTC-7, sam williams wrote:
>>
>> Hey there, 
>>
>> You know when you make a surface 'live' and then you select and move 
>> another nearby object and it instantly snaps to the closest point on the 
>> 'live' surface...
>>
>> well i basically want to do this with a script. so it selects the object 
>> near the 'live' surface and basically moves its position fractionally so it 
>> will snap to the 'live' surface. How come it works when i grab the central 
>> pivot of the move control, but not when i use the cmds.move() command?
>>
>> is this possible with scripting?
>>
>> If anyone can help me with this i would be very grateful,
>>
>> thanks, 
>> Sam
>>
>> (the end result im trying to achieve is to cycle through points on a 
>> curve and snap them one at a time to the closest point on a nearby mesh)
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/617d28ae-b4f6-4234-af65-87cbea82dcbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to