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

Synopsis

polyChipOff([attraction=float], [caching=boolean], [constructionHistory=boolean], [duplicate=boolean], [gravity=[linear, linear, linear]], [gravityX=linear], [gravityY=linear], [gravityZ=linear], [keepFacesTogether=boolean], [localDirection=[linear, linear, linear]], [localDirectionX=linear], [localDirectionY=linear], [localDirectionZ=linear], [localRotate=[angle, angle, angle]], [localRotateX=angle], [localRotateY=angle], [localRotateZ=angle], [localScale=[float, float, float]], [localScaleX=float], [localScaleY=float], [localScaleZ=float], [localTranslate=[linear, linear, linear]], [localTranslateX=linear], [localTranslateY=linear], [localTranslateZ=linear], [magnX=linear], [magnY=linear], [magnZ=linear], [magnet=[linear, linear, linear]], [name=string], [nodeState=int], [offset=float], [pivot=[linear, linear, linear]], [pivotX=linear], [pivotY=linear], [pivotZ=linear], [random=float], [rotate=[angle, angle, angle]], [rotateX=angle], [rotateY=angle], [rotateZ=angle], [scale=[float, float, float]], [scaleX=float], [scaleY=float], [scaleZ=float], [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.

polyChipOff is undoable, queryable, and editable.

Extract facets. Faces can be extracted separately or together, and manipulations can be performed either in world or object space.

Return value

stringThe node name.

In query mode, return type is based on queried flag.

Related

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

Flags

attraction, caching, constructionHistory, duplicate, gravity, gravityX, gravityY, gravityZ, keepFacesTogether, localDirection, localDirectionX, localDirectionY, localDirectionZ, localRotate, localRotateX, localRotateY, localRotateZ, localScale, localScaleX, localScaleY, localScaleZ, localTranslate, localTranslateX, localTranslateY, localTranslateZ, magnX, magnY, magnZ, magnet, name, nodeState, offset, pivot, pivotX, pivotY, pivotZ, random, rotate, rotateX, rotateY, rotateZ, scale, scaleX, scaleY, scaleZ, translate, translateX, translateY, translateZ, weight, worldSpace
Long name (short name) Argument types Properties
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.
duplicate(dup) boolean createqueryedit
If "on", facets are duplicated, otherwise original facets are removed.
C: Default is "on".
Q: When queried, this flag returns an int.
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].
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.
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.
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.
keepFacesTogether(kft) boolean createqueryedit
This flag specifies how to chip off facets. If "on", facets are pulled together (connected ones stay connected), otherwise they are pulled independentely.
C: Default is "on".
Q: When queried, this flag returns an int.
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].
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.
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.
localDirectionZ(ldz) linear createqueryedit
This flag specifies Y for the local slant axis.
C: Default is 1.0.
Q: When queried, this flag returns a float.
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).
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.
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.
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.
localScale(ls) [float, float, float] 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].
localScaleX(lsx) float createqueryedit
This flag specifies X for local scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
localScaleY(lsy) float createqueryedit
This flag specifies Y for local scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
localScaleZ(lsz) float 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

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].
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.
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.
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.
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.
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.
magnZ(mz) linear createqueryedit
This flag specifies Z for the magnet vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
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].
offset(off) float createqueryedit
This flag specifies the local offset.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivot(pvt) [linear, linear, linear] 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].
pivotX(pvx) linear createqueryedit
This flag specifies the X pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivotY(pvy) linear createqueryedit
This flag specifies the Y pivot for scaling and rotation.
C: Default is 0.0.
Q: When queried, this flag returns a float.
pivotZ(pvz) linear 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

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.

Global Values

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].
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.
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.
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.
scale(s) [float, float, float] 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].
scaleX(sx) float createqueryedit
This flag specifies X for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
scaleY(sy) float createqueryedit
This flag specifies Y for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
scaleZ(sz) float createqueryedit
This flag specifies Z for scaling vector.
C: Default is 1.0.
Q: When queried, this flag returns a float.
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].
translateX(tx) linear createqueryedit
This flag specifies the X translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
translateY(ty) linear createqueryedit
This flag specifies the Y translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
translateZ(tz) linear createqueryedit
This flag specifies the Z translation vector.
C: Default is 0.0.
Q: When queried, this flag returns a float.
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.
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.
Common flags
caching(cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed.
constructionHistory(ch) boolean createquery
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.
name(n) string create
Give a name to the resulting node.
nodeState(nds) int createqueryedit
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

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.

Python examples

import maya.cmds as cmds

# Duplicate
cmds.polyPlane( n='plg', w=10, h=10 )
cmds.polyChipOff( 'plg.f[71:72]', 'plg.f[81:82]', dup=True, ltz=1 )
#facets are duplicated and translated in local space

# Extract
cmds.polyChipOff( 'plg.f[11:12]', 'plg.f[21:22]', dup=False, ty=1 )
#facets are extracted and translated in world space

# Separate
cmds.polyChipOff( 'plg.f[15:16]', 'plg.f[23:24]', dup=False, kft=False, ls=(.5, .5, 0) )
#facets are extracted then scaled separately

# Together
cmds.polyChipOff( 'plg.f[73:74]', 'plg.f[83:84]', dup=False, kft=True, ls=(.5, .5, 0) )
#facets are extracted then scaled together