Go to: Synopsis. Return value. Related. Flags. Python examples.
hide(
[objects]
, [allObjects=boolean], [clearSelection=boolean], [invertComponents=boolean], [returnHidden=boolean], [testVisibility=boolean])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
hide is undoable, NOT queryable, and NOT editable.
The hide command is used to make objects invisible. If no flags are
used, the objects specified, or the active objects if none are specified,
will be made invisible.
None
currentUnit, displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displayRGBColor, displaySmoothness, displayStats, displaySurface, refresh, showHidden, toggle
allObjects, clearSelection, invertComponents, returnHidden, testVisibility
Long name (short name) |
Argument types |
Properties |
|
allObjects(all)
|
boolean
|
|
|
Make everything invisible (top level objects).
|
|
clearSelection(cs)
|
boolean
|
|
|
Clear selection after the operation.
|
|
invertComponents(ic)
|
boolean
|
|
|
Hide components that are not specified.
|
|
returnHidden(rh)
|
boolean
|
|
|
Hide objects, but also return list of hidden objects.
|
|
testVisibility(tv)
|
boolean
|
|
|
Do not change visibility, just test it (returns 1 is invisible, 2 if visible, 3 if partially visible).
|
|
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.
|
import maya.cmds as cmds
cmds.hide( all=True )
cmds.hide( cmds.ls( type='nurbsSurface' ) )