Go to: Synopsis. Return value. Related. Flags. MEL examples.
toggle [-above] [-below] [-boundary] [-boundingBox] [-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 | ||
---|---|---|---|---|
-above(-a)
|
|
|||
|
||||
-below(-b)
|
|
|||
|
||||
-boundary(-bn)
|
|
|||
|
||||
-boundingBox(-box)
|
|
|||
|
||||
-controlVertex(-cv)
|
|
|||
|
||||
-doNotWrite(-dnw)
|
|
|||
|
||||
-editPoint(-ep)
|
|
|||
|
||||
-extent(-et)
|
|
|||
|
||||
-facet(-f)
|
|
|||
|
||||
-geometry(-g)
|
|
|||
|
||||
-global(-gl)
|
|
|||
|
||||
-highPrecisionNurbs(-hpn)
|
|
|||
|
||||
-hull(-hl)
|
|
|||
|
||||
-latticePoint(-lp)
|
|
|||
|
||||
-latticeShape(-ls)
|
|
|||
|
||||
-localAxis(-la)
|
|
|||
|
||||
-newCurve(-nc)
|
|
|||
|
||||
-newPolymesh(-np)
|
|
|||
|
||||
-newSurface(-ns)
|
|
|||
|
||||
-normal(-nr)
|
|
|||
|
||||
-origin(-o)
|
|
|||
|
||||
-point(-pt)
|
|
|||
|
||||
-pointDisplay(-pd)
|
|
|||
|
||||
-pointFacet(-pf)
|
|
|||
|
||||
-rotatePivot(-rp)
|
|
|||
|
||||
-scalePivot(-sp)
|
|
|||
|
||||
-selectHandle(-sh)
|
|
|||
|
||||
-state(-st)
|
boolean
|
|||
|
||||
-surfaceFace(-sf)
|
|
|||
|
||||
-template(-te)
|
|
|||
|
||||
-uvCoords(-uv)
|
|
|||
|
||||
-vertex(-vt)
|
|
|||
|
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.