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


showHidden( [objects...] , [above=boolean], [allObjects=boolean], [below=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

showHidden is undoable, NOT queryable, and NOT editable.

The showHidden command is used to make invisible objects visible. If no flags are specified, only the objects given to the command will be made visible. If a parent of an object is invisible, the object will still be invisible. Invisibility is inherited. To ensure the object becomes visible, use the -a/above flag. This forces all invisible ancestors of the object(s) to be visible. If the -b/below flag is used, any invisible objects below the object will be made visible. To make all objects visible, use the -all/allObjects flag.

See also: hide

Return value



currentUnit, displayAffected, displayColor, displayCull, displayLevelOfDetail, displayPref, displayRGBColor, displaySmoothness, displayStats, displaySurface, hide, refresh, toggle


above, allObjects, below
Long name (short name) Argument types Properties
allObjects(all) boolean create
make all invisible objects visible
above(a) boolean create
make objects and all their invisible ancestors visible
below(b) boolean create
make objects and all their invisible decendents 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.

Python examples

import maya.cmds as cmds

# create a sphere and group it, then hide the sphere and the group.
cmds.sphere( n='sphere1' )
cmds.group( n='group1' )
cmds.hide( 'group1', 'sphere1' )

# make the sphere visible. Note that you still can't see it
# because the group is invisible.
cmds.showHidden( 'sphere1' )

# make the sphere and the group visible.
cmds.showHidden( 'sphere1', above=True )

# make everything visible. This will make the cameras (which are
# normally invisible) visible as well.
cmds.showHidden( all=True )