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
None
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
allObjects(all)
|
boolean
|
![]() |
||
|
||||
above(a)
|
boolean
|
![]() |
||
|
||||
below(b)
|
boolean
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
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 )