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

Synopsis

polyChipOff [-attraction float] [-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 linear linear linear] [-localScaleX linear] [-localScaleY linear] [-localScaleZ linear] [-localTranslate linear linear linear] [-localTranslateX linear] [-localTranslateY linear] [-localTranslateZ linear] [-magnX linear] [-magnY linear] [-magnZ 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] [-translate linear linear linear] [-translateX linear] [-translateY linear] [-translateZ linear] [-weight float] [-worldSpace boolean]

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.

Flags

attraction, 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, 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
-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.

In query mode, this flag needs a value.

-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.

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.

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.
C: Default is 0.0.
Q: When queried, this flag returns a float.

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 Y 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.

-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.

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 be used more than once in a command

Return value


string The node name.

Related

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

MEL examples

//<I>Duplicate</I>
polyPlane -n plg -w 10 -h 10;
polyChipOff -dup on -ltz 1 plg.f[71:72] plg.f[81:82];
//facets are duplicated and translated in local space

//<I>Extract</I>
polyChipOff -dup off -ty 1 plg.f[11:12] plg.f[21:22];
//facets are extracted and translated in world space

//<I>Separate</I>
polyChipOff -dup off -kft off -ls .5 .5 0 plg.f[15:16] plg.f[23:24];
//facets are extracted then scaled separately

//<I>Together</I>
polyChipOff -dup off -kft on -ls .5 .5 0 plg.f[73:74] plg.f[83:84];
//facets are extracted then scaled together