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.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
direction (d) | float, float, float | ||
|
|||
directionX (dx) | float | ||
|
|||
directionY (dy) | float | ||
|
|||
directionZ (dz) | float | ||
|
|||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
range (rn) | bool | ||
|
|||
tolerance (tol) | float | ||
|
|||
useNormal (un) | bool | ||
|
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) )