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

Synopsis

showHidden( [objects...] , [above=boolean], [allObjects=boolean], [below=boolean], [lastHidden=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

None

Related

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

Flags

above, allObjects, below, lastHidden
Long name (short name) Argument types Properties
above(a) boolean create
Make objects and all their invisible ancestors visible.
allObjects(all) boolean create
Make all invisible objects visible.
below(b) boolean create
Make objects and all their invisible descendants visible.
lastHidden(lh) boolean create
Show everything that was hidden with the last hide command.

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 )