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).string |
In query mode, return type is based on queried flag.
Long name (short name) | Argument types | Properties | ||
---|---|---|---|---|
addFolder(add)
|
boolean
|
|||
|
||||
addNodes(adn)
|
string
|
|||
|
||||
allowPanningInX(apx)
|
boolean
|
|||
|
||||
allowPanningInY(apy)
|
boolean
|
|||
|
||||
allowZooming(az)
|
boolean
|
|||
|
||||
command(cmd)
|
string
|
|||
|
||||
deleteFolder(deleteFolder)
|
string
|
|||
|
||||
editFolder(edf)
|
string
|
|||
|
||||
folderList(fl)
|
string
|
|||
|
||||
menu(mn)
|
string
|
|||
|
||||
name(n)
|
string
|
|||
|
||||
nodeType(ntp)
|
string
|
|||
|
||||
openDirectories(opd)
|
boolean
|
|||
|
||||
openFolder(opf)
|
boolean
|
|||
|
||||
parent(p)
|
string
|
|||
|
||||
path(pth)
|
string
|
|||
|
||||
popupMenuScript(pms)
|
string
|
|||
|
||||
rebuild(re)
|
boolean
|
|||
|
||||
refreshAllSwatches(ras)
|
boolean
|
|||
|
||||
refreshSelectedSwatches(rss)
|
boolean
|
|||
|
||||
refreshSwatch(rs)
|
string
|
|||
|
||||
reset(rst)
|
boolean
|
|||
|
||||
restrictPanAndZoom(rpz)
|
boolean
|
|||
|
||||
saveSwatches(ss)
|
boolean
|
|||
|
||||
scrollBar(sb)
|
string
|
|||
|
||||
scrollPercent(sp)
|
float
|
|||
|
||||
selectedGadgets(sg)
|
string
|
|||
|
||||
showDividers(sd)
|
boolean
|
|||
|
||||
showFiles(sfi)
|
boolean
|
|||
|
||||
showFolders(sfo)
|
boolean
|
|||
|
||||
showNodes(sn)
|
boolean
|
|||
|
||||
stateString(sts)
|
boolean
|
|||
|
||||
style(stl)
|
string
|
|||
|
||||
transform(trn)
|
string
|
|||
|
||||
type(typ)
|
string
|
|||
|
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.