Thanks Marcus, Does this tool, know automatically the closest point on the mesh to project onto?.
It seams you have to tell it where to hit the mesh, based on a selected axis or from the perspective of the camera. I basically need each point on the curve to know which part of the mesh is mathematically closest and then move to this location. I tried the project curve on mesh in maya 2014, i dont know if there is an updated 'proximity' feature in 2015.. cheers, Sam On Sunday, August 10, 2014 2:42:32 PM UTC+1, Marcus Ottosson wrote: > > 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 <[email protected] <javascript:>> > 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 [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/python_inside_maya/617d28ae-b4f6-4234-af65-87cbea82dcbf%40googlegroups.com >> >> <https://groups.google.com/d/msgid/python_inside_maya/617d28ae-b4f6-4234-af65-87cbea82dcbf%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > *Marcus Ottosson* > [email protected] <javascript:> > -- 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/025b0ca4-83da-469c-a0e7-eda5821dd886%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
