Go to: Synopsis. Return value. Keywords. Flags. Python examples.
visor([addFolder=boolean], [addNodes=string], [allowPanningInX=boolean], [allowPanningInY=boolean], [allowZooming=boolean], [command=string], [deleteFolder=string], [editFolder=string], [folderList=string], [menu=string], [name=string], [nodeType=string], [openDirectories=boolean], [openFolder=boolean], [parent=string], [path=string], [popupMenuScript=string], [rebuild=boolean], [refreshAllSwatches=boolean], [refreshSelectedSwatches=boolean], [refreshSwatch=string], [reset=boolean], [restrictPanAndZoom=boolean], [saveSwatches=boolean], [scrollBar=string], [scrollPercent=float], [selectedGadgets=string], [showDividers=boolean], [showFiles=boolean], [showFolders=boolean], [showNodes=boolean], [stateString=boolean], [style=string], [transform=string], [type=string])
Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.
visor is undoable, queryable, and NOT editable.
Command for the creation and manipulation of a Visor UI element. The Visor is
used to display the contents of a scene (rendering related nodes in
particular), as well as files on disk which the user may wish to bring into
the scene (shader and texture libraries for example).
In query mode, return type is based on queried flag.
render, hypergraph, shader, hypershade
addFolder, addNodes, allowPanningInX, allowPanningInY, allowZooming, command, deleteFolder, editFolder, folderList, menu, name, nodeType, openDirectories, openFolder, parent, path, popupMenuScript, rebuild, refreshAllSwatches, refreshSelectedSwatches, refreshSwatch, reset, restrictPanAndZoom, saveSwatches, scrollBar, scrollPercent, selectedGadgets, showDividers, showFiles, showFolders, showNodes, stateString, style, transform, type
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
# The visor command is not one which would commonly be used by the user.
# For examples of its use, refer to visorPanel.mel and addVisorFolders.mel.