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

Synopsis

hide [-allObjects] [-clearSelection] [-invertComponents] [-returnHidden] [-testVisibility] [objects]

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.

Return value

None

Related

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

Flags

allObjects, clearSelection, invertComponents, returnHidden, testVisibility
Long name (short name) Argument types Properties
-allObjects(-all) create
Make everything invisible (top level objects).
-clearSelection(-cs) create
Clear selection after the operation.
-invertComponents(-ic) create
Hide components that are not specified.
-returnHidden(-rh) create
Hide objects, but also return list of hidden objects.
-testVisibility(-tv) create
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 be used more than once in a command.

MEL examples

hide -all;
hide `ls -type nurbsSurface`;