Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 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