Go to: Synopsis. Flags. Return value. Related. Python examples.

Synopsis

polyExtrudeFacet([attraction=float], [constructionHistory=boolean], [divisions=int], [gravity=[linear, linear, linear]], [gravityX=linear], [gravityY=linear], [gravityZ=linear], [inputCurve=nurbsCurve], [keepFacesTogether=boolean], [localDirection=[linear, linear, linear]], [localDirectionX=linear], [localDirectionY=linear], [localDirectionZ=linear], [localRotate=[angle, angle, angle]], [localRotateX=angle], [localRotateY=angle], [localRotateZ=angle], [localScale=[linear, linear, linear]], [localScaleX=linear], [localScaleY=linear], [localScaleZ=linear], [localTranslate=[linear, linear, linear]], [localTranslateX=linear], [localTranslateY=linear], [localTranslateZ=linear], [magnX=linear], [magnY=linear], [magnet=[linear, linear, linear]], [name=string], [offset=float], [pivot=[float, float, float]], [pivotX=float], [pivotY=float], [pivotZ=float], [random=float], [rotate=[angle, angle, angle]], [rotateX=angle], [rotateY=angle], [rotateZ=angle], [scale=[linear, linear, linear]], [scaleX=linear], [scaleY=linear], [scaleZ=linear], [smoothingAngle=angle], [translate=[linear, linear, linear]], [translateX=linear], [translateY=linear], [translateZ=linear], [weight=float], [worldSpace=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

polyExtrudeFacet is undoable, queryable, and editable.

Extrude faces. Faces can be extruded separately or together, and manipulations can be performed either in world or object space.

Flags

attraction, constructionHistory, divisions, gravity, gravityX, gravityY, gravityZ, inputCurve, keepFacesTogether, localDirection, localDirectionX, localDirectionY, localDirectionZ, localRotate, localRotateX, localRotateY, localRotateZ, localScale, localScaleX, localScaleY, localScaleZ, localTranslate, localTranslateX, localTranslateY, localTranslateZ, magnX, magnY, magnet, name, offset, pivot, pivotX, pivotY, pivotZ, random, rotate, rotateX, rotateY, rotateZ, scale, scaleX, scaleY, scaleZ, smoothingAngle, translate, translateX, translateY, translateZ, weight, worldSpace
Long name (short name) [argument types] Properties
keepFacesTogether(kft) boolean createqueryedit
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.

In query mode, this flag needs a value.

worldSpace(ws) boolean createqueryedit
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.

In query mode, this flag needs a value.

random(ran) float createqueryedit
This flag specifies the random value for all parameters.
C: Default is 0.0. The range is [-10.0, 10.0].
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

inputCurve(inc) nurbsCurve create
This flag specifies the curve to be used as input for extrusion
C: 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
divisions(d) int createqueryedit
This flag specifies the number of subdivisions.
C: Default is 1
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.

smoothingAngle(sma) angle createqueryedit
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

In query mode, this flag needs a value.

translate(t) [linear, linear, linear] createqueryedit
This flag specifies the translation vector.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

translateX(tx) linear createqueryedit
This flag specifies the X translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

translateY(ty) linear createqueryedit
This flag specifies the Y translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

translateZ(tz) linear createqueryedit
This flag specifies the Z translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

rotate(ro) [angle, angle, angle] createqueryedit
This flag specifies the rotation angles around X, Y, Z.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

rotateX(rx) angle createqueryedit
This flag specifies the rotation angle around X.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

rotateY(ry) angle createqueryedit
This flag specifies the rotation angle around Y.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

rotateZ(rz) angle createqueryedit
This flag specifies the rotation angle around Z.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

scale(s) [linear, linear, linear] createqueryedit
This flag specifies the scaling vector.
C: Default is 1.0 1.0 1.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

scaleX(sx) linear createqueryedit
This flag specifies X for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

scaleY(sy) linear createqueryedit
This flag specifies Y for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

scaleZ(sz) linear createqueryedit
This flag specifies Z for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

pivot(pvt) [float, float, float] createqueryedit
This flag specifies the pivot for scaling and rotation.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

pivotX(pvx) float createqueryedit
This flag specifies the X pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

pivotY(pvy) float createqueryedit
This flag specifies the Y pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

pivotZ(pvz) float createqueryedit
This flag specifies the Z pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.

Local Values

In query mode, this flag needs a value.

offset(off) float createqueryedit
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.

In query mode, this flag needs a value.

localTranslate(lt) [linear, linear, linear] createqueryedit
This flag specifies the local translation vector.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

localTranslateX(ltx) linear createqueryedit
This flag specifies the X local translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localTranslateY(lty) linear createqueryedit
This flag specifies the Y local translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localTranslateZ(ltz) linear createqueryedit
This flag specifies the Z local translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localRotate(lr) [angle, angle, angle] createqueryedit
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).

In query mode, this flag needs a value.

localRotateX(lrx) angle createqueryedit
This flag specifies local rotation X angle (Slant Rot around slantAxis).
C: Default is 0.0. The range is [0, 360].
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localRotateY(lry) angle createqueryedit
This flag specifies local rotation Y angle (Slant Roll of slantAxis).
C: Default is 0.0. The range is [0, 180].
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localRotateZ(lrz) angle createqueryedit
This flag specifies local rotation Z angle (Twist around normal).
C: Default is 0.0. The range is [0, 360].
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localDirection(ld) [linear, linear, linear] createqueryedit
This flag specifies the local slant axis (see local rotation).
C: Default is 0.0 0.0 1.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

localDirectionX(ldx) linear createqueryedit
This flag specifies X for the local slant axis.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localDirectionY(ldy) linear createqueryedit
This flag specifies Y for the local slant axis.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localDirectionZ(ldz) linear createqueryedit
This flag specifies Z for the local slant axis.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localScale(ls) [linear, linear, linear] createqueryedit
This flag specifies the local scaling vector.
C: Default is 1.0 1.0 1.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

localScaleX(lsx) linear createqueryedit
This flag specifies X for local scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localScaleY(lsy) linear createqueryedit
This flag specifies Y for local scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

localScaleZ(lsz) linear createqueryedit
This flag specifies Z for local scaling vector : Flattening.
C: Default is 1.0. The range is [0.0, 1.0].
Q: When queried, this flag returns a float.

Dynamic Values

In query mode, this flag needs a value.

weight(w) float createqueryedit
This flag specifies the weight, related to gravity.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

gravity(g) [linear, linear, linear] createqueryedit
This flag specifies the gravity vector.
C: Default is 0.0 -1.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

gravityX(gx) linear createqueryedit
This flag specifies X for the gravity vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

gravityY(gy) linear createqueryedit
This flag specifies Y for the gravity vector.
C: Default is -1.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

gravityZ(gz) linear createqueryedit
This flag specifies Z for the gravity vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

attraction(att) float createqueryedit
This flag specifies the attraction, related to magnet.
C: Default is 0.0. The range is [-2.0, 2.0].
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

magnet(m) [linear, linear, linear] createqueryedit
This flag specifies the magnet vector.
C: Default is 0.0 0.0 0.0.
Q: When queried, this flag returns a float[3].

In query mode, this flag needs a value.

magnX(mx) linear createqueryedit
This flag specifies X for the magnet vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

magnY(my) linear createqueryedit
This flag specifies Y for the magnet vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.

In query mode, this flag needs a value.

name(n) string create
Name the resulting object.
constructionHistory(ch) boolean createquery
Turn the construction history on or off (where applicable).
Q: When queried, this flag returns an int.

In query mode, this flag needs a value.


Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Return value


string The node name.

Related

polyAppend, polyAppendVertex, polyBevel, polyChipOff, polyCreateFacet, polyExtrudeEdge, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate

Python examples

import maya.cmds as cmds

#<I>Separate</I>
cmds.polyPlane( n='plg', w=10, h=10 )
cmds.polyExtrudeFacet( 'plg.f[71:72]', 'plg.f[81:82]', kft=False, ltz=2, ls=(.5, .5, 0) )
#facets are extruded then scaled separately


#<I>Together</I>
cmds.polyExtrudeFacet( 'plg.f[17:18]', 'plg.f[27:28]', kft=True, ltz=2, ls=(.5, .5, 0) )
#facets are extruded then scaled together