This command computes a surface given a profile curve and possibly a path curve. There are three ways to extrude a profile curve. The most basic method is called a “distance” extrude where direction and length are specified. No path curve is necessary in this case. The second method is called “flat” extrude. This method sweeps the profile curve down the path curve without changing the orientation of the profile curve. Finally, the third method is called “tube” extrude. This method sweeps a profile curve down a path curve while the profile curve rotates so that it maintains a relationship with the path curve.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
|
|||
degreeAlongLength (dl) | int | ||
|
|||
direction (d) | float, float, float | ||
|
|||
directionX (dx) | float | ||
|
|||
directionY (dy) | float | ||
|
|||
directionZ (dz) | float | ||
|
|||
extrudeType (et) | int | ||
|
|||
fixedPath (fpt) | bool | ||
|
|||
length (l) | float | ||
|
|||
mergeItems (mi) | bool | ||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
|
|||
object (o) | bool | ||
|
|||
pivot (p) | float, float, float | ||
|
|||
polygon (po) | int | ||
The value of this argument controls the type of the object created by this operation 0: nurbs surface1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)3: Bezier surface4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion) |
|||
range (rn) | bool | ||
|
|||
rebuild (rb) | bool | ||
Rebuild the input curve(s) before using them in the operation. Use nurbsCurveRebuildPref to set the parameters for the conversion.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|
|||
rotation (ro) | float | ||
|
|||
scale (sc) | float | ||
|
|||
subCurveSubSurface (scs) | bool | ||
|
|||
useComponentPivot (ucp) | int | ||
|
|||
useProfileNormal (upn) | bool | ||
|
Derived from mel command maya.cmds.extrude
Example:
import pymel.core as pm
import maya.cmds as cmds
# extrude profile curve "distance" 5 units along x axis
pm.extrude ('profile', et = 0, d= (1, 0, 0), l= 5)
# extrude profile curve along path curve using "flat" method
pm.extrude( 'profile', 'path', et=1 )
# extrude profile curve along path curve using "tube" method
pm.extrude( 'profile', 'path', et=2 )