To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/617d28ae-b4f6-4234-af65-87cbea82dcbf%40googlegroups.com.--
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 python_inside_m...@googlegroups.com.
If your intent on cycling through vertices and snapping them using Python, then this probably won't help much. But if you're looking to snap a curve onto a mesh via their closest locations and you happen to be running Maya 2015, then there's an option under Edit Mesh called "Project Curve on Mesh" that could do what you want.
On 10 August 2014 13:56, sam williams <samwill...@gmail.com> wrote:
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 python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/617d28ae-b4f6-4234-af65-87cbea82dcbf%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/025b0ca4-83da-469c-a0e7-eda5821dd886%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.