This command creates, edit and queries outliner panels which contain only an outliner editor.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
control (ctl) | bool | ||
Returns the top level control for this panel. Usually used for getting a parent to attach popup menus. CAUTION: panels may not have controls at times. This flag can return “” if no control is present. |
|||
copy (cp) | unicode | ||
|
|||
createString (cs) | bool | ||
defineTemplate (dt) | unicode | ||
Puts a command in a mode where any other flags and args are parsed and added to the command template specified in the argument. They will be used as default arguments in any subsequent invocations of the command when templateName is set as the current template. |
|||
docTag (dtg) | unicode | ||
|
|||
editString (es) | bool | ||
exists (ex) | bool | ||
|
|||
init (init) | bool | ||
|
|||
isUnique (iu) | bool | ||
|
|||
label (l) | unicode | ||
|
|||
menuBarVisible (mbv) | bool | ||
|
|||
needsInit (ni) | bool | ||
(Internal) On Edit will mark the panel as requiring initialization. Query will return whether the panel is marked for initialization. Used during file -new and file -open. |
|||
outlinerEditor (oe) | bool | ||
This flag returns the name of the outliner editor contained by the panel.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
parent (p) | unicode | ||
|
|||
popupMenuProcedure (pmp) | script | ||
Specifies the procedure called for building the panel’s popup menu(s). The default value is “buildPanelPopupMenu”. The procedure should take one string argument which is the panel’s name. |
|||
replacePanel (rp) | unicode | ||
|
|||
tearOff (to) | bool | ||
Will tear off this panel into a separate window with a paneLayout as the parent of the panel. When queried this flag will return if the panel has been torn off into its own window. |
|||
tearOffCopy (toc) | unicode | ||
|
|||
unParent (up) | bool | ||
|
|||
useTemplate (ut) | unicode | ||
|
Derived from mel command maya.cmds.outlinerPanel
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a new regular outliner in its own window
#
pm.window()
# Result: ui.Window('window1') #
pm.frameLayout( labelVisible=False )
# Result: ui.FrameLayout('window1|frameLayout14') #
panel = pm.outlinerPanel()
outliner = pm.outlinerPanel(panel, query=True,outlinerEditor=True)
pm.outlinerEditor( outliner, edit=True, mainListConnection='worldList', selectionConnection='modelList', showShapes=False, showReferenceNodes=False, showAttributes=False, showConnected=False, showAnimCurvesOnly=False, autoExpand=False, showDagOnly=True, ignoreDagHierarchy=False, expandConnections=False, showCompounds=True, showNumericAttrsOnly=False, highlightActive=True, autoSelectNewObjects=False, doNotSelectNewObjects=False, transmitFilters=False, showSetMembers=True, setFilter='defaultSetFilter' )
# Result: ui.OutlinerEditor('window1|frameLayout14|outlinerPanel3|outlinerPanel3|outlinerPanel3|outlinerPanel3') #
pm.showWindow()