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 Toggle caching for all attributes so that no recomputation is needed. constructionHistory / ch bool 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 frozen / fzn bool name / n unicode Give a name to the resulting node. nodeState / nds int 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 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 # 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))