pymel.core.modeling.projectCurve¶
- projectCurve(*args, **kwargs)¶
The projectCurve command creates curves on surface where all selected curves project onto the selected surfaces. Projection can be done using the surface normals or the user can specify the vector to project along. Note: the user does not have to specify the curves and surfaces in any particular order in the command line.
Flags:
Long Name / Short Name Argument Types Properties caching / cch bool Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only. constructionHistory / ch bool Turn the construction history on or off. direction / d float, float, float Direction of projection. Available only if useNormal is false. directionX / dx float X direction of projection. Default:0.0 directionY / dy float Y direction of projection. Default:0.0 directionZ / dz float Z direction of projection. Default:1.0 frozen / fzn bool name / n unicode Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created. nodeState / nds int Modifies the node state. See the node documentation for more information. Note:For advanced users only. Flag can have multiple arguments, passed either as a tuple or a list. object / o bool Create the result, or just the dependency node. range / rn bool Force a curve range on complete input curve. Advanced flags tolerance / tol float Tolerance to fit to. Default:0.01 useNormal / un bool True if the surface normal is to be used and false if the direction vector should be used instead. Default:false Common flags Derived from mel command maya.cmds.projectCurve
Example:
import pymel.core as pm # Project the active curve onto the active surface using the surface # normals: pm.projectCurve( un=True ) # Project this curve onto the nurbs sphere using the specified direction: pm.projectCurve( 'curve1', 'nurbsSphere1', d=(0.0, 6.0, 0.0) )