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).
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
addFolder (add) | bool | ||
|
|||
addNodes (adn) | unicode | ||
|
|||
allowPanningInX (apx) | bool | ||
|
|||
allowPanningInY (apy) | bool | ||
|
|||
allowZooming (az) | bool | ||
|
|||
command (cmd) | unicode | ||
|
|||
deleteFolder (deleteFolder) | unicode | ||
|
|||
editFolder (edf) | unicode | ||
|
|||
folderList (fl) | unicode | ||
|
|||
menu (mn) | unicode | ||
|
|||
name (n) | unicode | ||
|
|||
nodeType (ntp) | unicode | ||
|
|||
openDirectories (opd) | bool | ||
|
|||
openFolder (opf) | bool | ||
|
|||
parent (p) | unicode | ||
|
|||
path (pth) | unicode | ||
|
|||
popupMenuScript (pms) | unicode | ||
Specifies the script to be called when the right mouse button is pressed in the visor. The name of the editor in which the right mouse button was pressed will be appended to the script at the time the script is called. |
|||
rebuild (re) | bool | ||
|
|||
refreshAllSwatches (ras) | bool | ||
|
|||
refreshSelectedSwatches (rss) | bool | ||
|
|||
refreshSwatch (rs) | unicode | ||
Refresh the swatch of the file with the specified path. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
reset (rst) | bool | ||
|
|||
restrictPanAndZoom (rpz) | bool | ||
Specifies whether the panning and zooming of the visor should be restricted to keep the contents in the top left corner of the visor when they are smaller than the visible area within the visor. Default is true. |
|||
saveSwatches (ss) | bool | ||
|
|||
scrollBar (sb) | unicode | ||
|
|||
scrollPercent (sp) | float | ||
|
|||
selectedGadgets (sg) | unicode | ||
|
|||
showDividers (sd) | bool | ||
|
|||
showFiles (sfi) | bool | ||
|
|||
showFolders (sfo) | bool | ||
|
|||
showNodes (sn) | bool | ||
|
|||
stateString (sts) | bool | ||
|
|||
style (stl) | unicode | ||
Set display style for the browser. Options are: outliner A single column with an outliner style icon and a text label singleColumn A single column with an image style icon and a text label multiColumn A multiple column grid of swatches with the text label below the swatch |
|||
transform (trn) | unicode | ||
|
|||
type (typ) | unicode | ||
Type of the new folder. Options are: command A mel command that will return a list of depend nodes that will be displayed in the folderconnectedNodes The nodes connected to the specified node name will be displayed in the folderdefaultNodes A mel command that will generate default node types. These nodes will not be part of the scene and are used for drag and drop creation of new nodes that are in the scene. The mel command use with this type is usually listNodetypes.directory A directory name in the file systemdirectoryCommand A mel command that will return a directory name in the file systemfolder An empty folder(the default value). Empty folders can be used as user defined folders by dropping dependency graph nodes in to themnodeTypeInDAG List all nodes of a given type under a specified transforms in the DAG. For example list all the shaders for a character by specifying the top transform of the charactershelfItems A directory containing mel files to use as shelf items |
Derived from mel command maya.cmds.visor
Example:
import pymel.core as pm
# 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.