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 ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information.Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
direction (d) float, float, float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Direction of projection. Available only if useNormal is false.
directionX (dx) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
X direction of projection.Default:0.0
directionY (dy) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Y direction of projection.Default:0.0
directionZ (dz) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Z direction of projection.Default:1.0
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information.Note:For advanced users only.Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
range (rn) bool ../../../_images/create.gif
 
Force a curve range on complete input curveFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.
tolerance (tol) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Tolerance to fit to.Default:0.01
useNormal (un) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
True if the surface normal is to be used and false if the direction vector should be used instead.Default:falseAdvanced flags

Derived from mel command maya.cmds.projectCurve

Example:

import pymel.core as pm

import maya.cmds as cmds

# 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) )

Previous topic

pymel.core.modeling.polyWedgeFace

Next topic

pymel.core.modeling.projectTangent

Core

Core Modules

Other Modules

This Page