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