Introduction to Maya - Modeling Fundamentals Vol 1
This course will look at the fundamentals of modeling in Maya with an emphasis on creating good topology. We'll look at what makes a good model in Maya and why objects are modeled in the way they are.
# 1 17-10-2014 , 02:52 PM
Registered User
Join Date: Feb 2004
Posts: 5

shrinkwrapping edit points of a curve to a surface

Hello there!,

i have quite a specific problem - i have a 3 cubic EP curve that i have drawn out with a few points which i want to shrinkwrap to a surface. Which is easy enough to do. The problem is i want to shrink wrap the edit points of the curve to the surface, rather than the control vertexes.

i have some code that automatically shrinkwraps my curve but i guess automatically the vertexes are what is used in the shrinkwrap deformer:

#################################################
shrinkWrapNode = pm.deformer('curve1', type='shrinkWrap')[0]
pm.PyNode("BASE_MESH").worldMesh[0] >> shrinkWrapNode.targetGeom
shrinkWrapNode.projection.set(4) # closest
shrinkWrapNode.closestIfNoIntersection.set(True)
#################################################

can anyone help me with this??

thanks,
Sam

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads