Extrude faces. Faces can be extruded separately or together, and manipulations can be performed either in world or object space.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
attraction (att) | float | ||
|
|||
caching (cch) | bool | ||
|
|||
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. |
|||
createCurve (cc) | bool | ||
divisions (d) | int | ||
|
|||
gain (ga) | float | ||
gravity (g) | float, float, float | ||
|
|||
gravityX (gx) | float | ||
|
|||
gravityY (gy) | float | ||
|
|||
gravityZ (gz) | float | ||
|
|||
inputCurve (inc) | PyNode | ||
This flag specifies the name of the curve to be used as input for extrusionC: The selected faces will be extruded along the curve. It will be useful to set a higher value (greater than 4) for the ‘-d/-divisions’ flag, to get good results. The normal of the surface has to be aligned with the direction of the curve. The extrusion is evenly distributed in the curve’s parameter space, and not on the curve’s geometry space |
|||
keepFacesTogether (kft) | bool | ||
This flag specifies how to extrude faces. If “on”, faces are pulled together (connected ones stay connected and only outside edges form new faces), otherwise they are pulled independently (each edge on selected faces creates a new face and manipulations are performed on each selected face separately).C: Default is “on”.Q: When queried, this flag returns an int. |
|||
keepFacetTogether (xft) | bool | ||
localCenter (lc) | int | ||
localDirection (ld) | float, float, float | ||
|
|||
localDirectionX (ldx) | float | ||
|
|||
localDirectionY (ldy) | float | ||
|
|||
localDirectionZ (ldz) | float | ||
|
|||
localRotate (lr) | float, float, float | ||
This flag specifies the local rotations : (slantRot, slantRoll, twistRot).C: Default is 0.0 0.0 0.0.Q: When queried, this flag returns a float[3]. Local rotation (slantRot, slantRoll, twistRot). |
|||
localRotateX (lrx) | float | ||
|
|||
localRotateY (lry) | float | ||
|
|||
localRotateZ (lrz) | float | ||
|
|||
localScale (ls) | float, float, float | ||
|
|||
localScaleX (lsx) | float | ||
|
|||
localScaleY (lsy) | float | ||
|
|||
localScaleZ (lsz) | float | ||
|
|||
localTranslate (lt) | float, float, float | ||
|
|||
localTranslateX (ltx) | float | ||
|
|||
localTranslateY (lty) | float | ||
|
|||
localTranslateZ (ltz) | float | ||
|
|||
magnX (mx) | float | ||
|
|||
magnY (my) | float | ||
|
|||
magnZ (mz) | float | ||
magnet (m) | float, float, float | ||
|
|||
maya2012 (m12) | bool | ||
name (n) | unicode | ||
|
|||
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 appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
offset (off) | float | ||
This flag specifies the local offset. Each edge of each selected face moves towards the inside of the face by given distance (in local reference).C: Default is 0.0. |
|||
pivot (pvt) | float, float, float | ||
|
|||
pivotX (pvx) | float | ||
|
|||
pivotY (pvy) | float | ||
|
|||
pivotZ (pvz) | float | ||
|
|||
random (ran) | float | ||
|
|||
rotate (ro) | float, float, float | ||
|
|||
rotateX (rx) | float | ||
|
|||
rotateY (ry) | float | ||
|
|||
rotateZ (rz) | float | ||
|
|||
scale (s) | float, float, float | ||
|
|||
scaleX (sx) | float | ||
|
|||
scaleY (sy) | float | ||
|
|||
scaleZ (sz) | float | ||
|
|||
smoothingAngle (sma) | float | ||
This flag specifies smoothingAngle threshold used to determine whether newly created edges are hard or soft.C: Default is 30.0. The range is [0, 180].Q: When queried, this flag returns a float. Global Values |
|||
taper (tp) | float | ||
taperCurve_FloatValue (cfv) | float | ||
taperCurve_Interp (ci) | int | ||
taperCurve_Position (cp) | float | ||
thickness (tk) | float | ||
translate (t) | float, float, float | ||
|
|||
translateX (tx) | float | ||
|
|||
translateY (ty) | float | ||
|
|||
translateZ (tz) | float | ||
|
|||
twist (twt) | float | ||
weight (w) | float | ||
|
|||
worldSpace (ws) | bool | ||
This flag specifies which reference to use. If “on” : all geometrical values are taken in world reference. If “off” : all geometrical values are taken in object reference.C: Default is off.Q: When queried, this flag returns an int. |
Derived from mel command maya.cmds.polyExtrudeFacet
Example:
import pymel.core as pm
# Separate
pm.polyPlane( n='plg', w=10, h=10 )
pm.polyExtrudeFacet( 'plg.f[71:72]', 'plg.f[81:82]', kft=False, ltz=2, ls=(.5, .5, 0) )
# Facets are extruded then scaled separately
# Together
pm.polyExtrudeFacet( 'plg.f[17:18]', 'plg.f[27:28]', kft=True, ltz=2, ls=(.5, .5, 0) )
# Facets are extruded then scaled together