Go to: Synopsis. Return value. Related. Flags. MEL examples.
toggle [-above]
[-below] [-boundary] [-controlVertex] [-doNotWrite] [-editPoint] [-extent]
[-facet] [-geometry] [-global]
[-highPrecisionNurbs]
[-hull] [-latticePoint] [-latticeShape] [-localAxis] [-newCurve] [-newPolymesh] [-newSurface] [-normal] [-origin]
[-point] [-pointDisplay] [-pointFacet] [-rotatePivot] [-scalePivot] [-selectHandle] [-state boolean] [-surfaceFace] [-template] [-uvCoords] [-vertex]
[objects]
toggle is undoable, queryable, and NOT editable.
The toggle command is used to toggle the display of various object features for objects which have these components. For example, CV and edit point display may be toggled for those listed NURB curves or surfaces. Note: This command is not undoable.boolean | when in the query mode. none otherwise. |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
-state(-st) |
boolean |
|||
|
||||
-geometry(-g) |
||||
|
||||
-controlVertex(-cv) |
||||
|
||||
-editPoint(-ep) |
||||
|
||||
-hull(-hl) |
||||
|
||||
-origin(-o) |
||||
|
||||
-surfaceFace(-sf) |
||||
|
||||
-pointDisplay(-pd) |
||||
|
||||
-vertex(-vt) |
||||
|
||||
-latticePoint(-lp) |
||||
|
||||
-latticeShape(-ls) |
||||
|
||||
-boundary(-bn) |
||||
|
||||
-normal(-nr) |
||||
|
||||
-point(-pt) |
||||
|
||||
-facet(-f) |
||||
|
||||
-pointFacet(-pf) |
||||
|
||||
-extent(-et) |
||||
|
||||
-uvCoords(-uv) |
||||
|
||||
-selectHandle(-sh) |
||||
|
||||
-rotatePivot(-rp) |
||||
|
||||
-scalePivot(-sp) |
||||
|
||||
-localAxis(-la) |
||||
|
||||
-global(-gl) |
||||
|
||||
-above(-a) |
||||
|
||||
-below(-b) |
||||
|
||||
-template(-te) |
||||
|
||||
-doNotWrite(-dnw) |
||||
|
||||
-newCurve(-nc) |
||||
|
||||
-newSurface(-ns) |
||||
|
||||
-newPolymesh(-np) |
||||
|
||||
-highPrecisionNurbs(-hpn) |
||||
|
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. |
$surface1 = `sphere`; toggle -cv $surface1; toggle -g -cv; toggle -q -cv; // Returns 0 if the queried state is false. // Returns 1 if the queried state is true.