pymel.core.general.toggle

toggle(*args, **kwargs)

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.

Flags:
  • above : a (bool) [create]

    Toggle state for all objects above listed objects.

  • below : b (bool) [create]

    Toggle state for all objects below listed objects.

  • boundary : bn (bool) [create,query]

    Toggle boundary display of listed mesh objects.

  • boundingBox : box (bool) []

  • controlVertex : cv (bool) [create,query]

    Toggle CV display of listed curves and surfaces.

  • doNotWrite : dnw (bool) [create,query]

    Toggle the this should be written to the filestate.

  • editPoint : ep (bool) [create,query]

    Toggle edit point display of listed curves and surfaces.

  • extent : et (bool) [create,query]

    Toggle display of extents of listed mesh objects.

  • facet : f (bool) [create,query]

    For use with normalflag. Set the normal display style to facet display.

  • geometry : g (bool) [create,query]

    Toggle geometry display of listed objects.

  • gl : gl (bool) [create]

    Toggle state for all objects

  • highPrecisionNurbs : hpn (bool) [create,query]

    Toggle high precision display for Nurbs Flag can have multiple arguments, passed either as a tuple or a list.

  • hull : hl (bool) [create,query]

    Toggle hull display of listed curves and surfaces.

  • latticePoint : lp (bool) [create,query]

    Toggle point display of listed lattices

  • latticeShape : ls (bool) [create,query]

    Toggle display of listed lattices

  • localAxis : la (bool) [create,query]

    Toggle local axis display of listed objects.

  • newCurve : nc (bool) [create,query]

    Set component display state of new curve objects

  • newPolymesh : np (bool) [create,query]

    Set component display state of new polymesh objects

  • newSurface : ns (bool) [create,query]

    Set component display state of new surface objects

  • normal : nr (bool) [create,query]

    Toggle display of normals of listed surface and mesh objects.

  • origin : o (bool) [create,query]

    Toggle origin display of listed surfaces.

  • point : pt (bool) [create,query]

    For use with normal flag. Set the normal display style to vertex display.

  • pointDisplay : pd (bool) [create,query]

    Toggle point display of listed surfaces.

  • pointFacet : pf (bool) [create,query]

    For use with normalflag. Set the normal display style to vertex and face display.

  • rotatePivot : rp (bool) [create,query]

    Toggle rotate pivot display of listed objects.

  • scalePivot : sp (bool) [create,query]

    Toggle scale pivot display of listed objects.

  • selectHandle : sh (bool) [create,query]

    Toggle select handle display of listed objects.

  • state : st (bool) [create]

    Explicitly set the state to true or false instead of toggling the state. Can not be queried.

  • surfaceFace : sf (bool) [create,query]

    Toggle surface face handle display of listed surfaces.

  • template : te (bool) [create,query]

    Toggle template state of listed objects

  • uvCoords : uv (bool) [create,query]

    Toggle display uv coords of listed mesh objects.

  • vertex : vt (bool) [create,query]

    Toggle vertex display of listed mesh objects.

Derived from mel command maya.cmds.toggle

Previous topic

pymel.core.general.timeCode

Next topic

pymel.core.general.toggleAxis

Core

Core Modules

Other Modules

This Page