pymel.core.modeling.polyProjectCurve

polyProjectCurve(*args, **kwargs)

The polyProjectCurve command creates curves by projecting a selected curve onto a selected poly mesh. The direction of projection will be the current view direction unless the direction vector is specified with the -direction/-d flag.

Flags:
Long name (short name) Argument Types Properties
addUnderTransform (aut) bool  
   
automatic (automatic) bool  
   
baryCoord (bc) float, float, float  
   
baryCoord1 (bc1) float  
   
baryCoord2 (bc2) float  
   
baryCoord3 (bc3) float  
   
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.

curveSamples (cs) int  
   
direction (d) float, float, float  
   
directionX (dx) float  
   
directionY (dy) float  
   
directionZ (dz) float  
   
face (f) int  
   
name (n) unicode ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list.

object (o) bool  
   
pointsOnEdges (poe) bool  
   
tolerance (tol) float  
   
triangle (t) int  
   

Derived from mel command maya.cmds.polyProjectCurve

Example:

import pymel.core as pm

import maya.cmds as cmds

# create a poly plane in the z axis
poly = pm.polyPlane(w=10, h=10, sx=10, sy=10, ax=(0,0,1), cuv=2, ch=1)

# create a nurbs circle also in the z axis
nurbs = pm.circle(ch=1, o=1, r=2, nr=(0,0,1))

# and project it onto the poly plane along the z axis
results = pm.polyProjectCurve(poly[0], nurbs[0], direction=(0,0,1))

Previous topic

pymel.core.modeling.polyPrism

Next topic

pymel.core.modeling.polyProjection

Core

Core Modules

Other Modules

This Page