This command creates an outliner editor which can be used to display a list of objects.WARNING: some flag combinations may not behave as you expect. The command is really intended for internal use for creating the outliner used by the various editors.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
allowMultiSelection (ams) | bool | ||
|
|||
alwaysToggleSelect (ats) | bool | ||
If true, then clicking on an item in the outliner will select or deselect it without affecting the selection of other items (unless allowMultiSelection is false). If false, clicking on an item in the outliner will replace the current selection with the selected item. |
|||
animLayerFilterOptions (alf) | unicode | ||
Specifies whether a filter is to be applied when displaying animation layers. If so, the options can be allAffecting(no filter), active(only the active layers on the object will be displayed) and animLayerEditor(the settings will be taken from the animation layer editor). |
|||
attrAlphaOrder (aao) | unicode | ||
Specify how attributes are to be sorted. Current recognised values are defaultfor no sorting and ascendto sort attributes from ‘a’ to ‘’z’ and descendto sort from ‘z’ to ‘a’. Notes: a) this only applies to top level attributes. |
|||
attrFilter (af) | unicode | ||
|
|||
autoExpand (xpd) | bool | ||
|
|||
autoExpandLayers (ael) | bool | ||
|
|||
autoSelectNewObjects (autoSelectNewObjects) | bool | ||
|
|||
containersIgnoreFilters (cif) | bool | ||
|
|||
control (ctl) | bool | ||
Query only. Returns the top level control for this editor. Usually used for getting a parent to attach popup menus. Caution: It is possible, at times, for an editor to exist without a control. This flag returns NONEif no control is present. |
|||
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. |
|||
directSelect (ds) | bool | ||
If true then clicking on an item in the outliner will add or remove just that item from the selection connection. If false then clicking on an item in the outliner causes the selection connection to be reloaded with the currently selected items in the outliner. |
|||
displayMode (dm) | unicode | ||
Affects how the outliner displays when a filter is applied. List mode is a non-indented flat list. DAG mode indents to represent the hierarchical structure of the model. |
|||
doNotSelectNewObjects (dns) | bool | ||
|
|||
docTag (dtg) | unicode | ||
|
|||
dropIsParent (dip) | bool | ||
This flag specifies the mode for drag’n’drop. If the flag is true, dropping items will do a reparent; if it is false, dropping will reorder items. By default, the flag is true (parent) |
|||
editAttrName (ean) | bool | ||
|
|||
exists (ex) | bool | ||
|
|||
expandConnections (xc) | bool | ||
|
|||
expandObjects (eo) | bool | ||
|
|||
filter (f) | unicode | ||
|
|||
forceMainConnection (fmc) | unicode | ||
Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object. This is a variant of the -mainListConnection flag in that it will force a change even when the connection is locked. This flag is used to reduce the overhead when using the -unlockMainConnection , -mainListConnection, -lockMainConnection flags in immediate succession. |
|||
highlightActive (ha) | bool | ||
This flag specifies whether or not the outliner should highlight objects that are active Note: if the outliner is driving the contents of another editor setting highlightActive to true may produce unexpected behavior |
|||
highlightConnection (hlc) | unicode | ||
Specifies the name of a selectionConnection object which the editor will synchronize with its highlight list. Not all editors have a highlight list. For those that do, it is a secondary selection list. |
|||
highlightSecondary (hs) | bool | ||
|
|||
ignoreDagHierarchy (hir) | bool | ||
This flag specifies whether or not DAG objects are displayed in their DAG hierarchy. Warning: using this flag without some other form of sensible filtering will lead to a very confusing outliner. |
|||
isChildSelected (ics) | PyNode | ||
This flag allows you to query if one or more of the children of the specified item is selected in the outliner. The item should be specified using a unique DAG path. Note that if the specified item appears multiple times in the outliner, the result will be true if one or more children of any occurrence of the specified item in the outliner is/are selected. |
|||
lockMainConnection (lck) | bool | ||
Locks the current list of objects within the mainConnection, so that only those objects are displayed within the editor. Further changes to the original mainConnection are ignored. |
|||
longNames (ln) | bool | ||
Controls whether long or short attribute names will be used in the interface. Note that this flag is ignored if the -niceNames flag is set. Default is short names. Queried, returns a boolean. |
|||
mainListConnection (mlc) | unicode | ||
Specifies the name of a selectionConnection object which the editor will use as its source of content. The editor will only display items contained in the selectionConnection object. |
|||
masterOutliner (mst) | unicode | ||
This flag is the name of an outliner that this outliner will share the objects and state from. When an outliner is shared, all of its state information comes from, and is applied to, the master outliner. |
|||
niceNames (nn) | bool | ||
Controls whether the attribute names will be displayed in a more user-friendly, readable way. When this is on, the longNames flag is ignored. When this is off, attribute names will be displayed either long or short, according to the longNames flag. Default is on. Queried, returns a boolean. |
|||
object (obj) | PyNode | ||
|
|||
organizeByLayer (obl) | bool | ||
If true then when a node with animation layer is displayed, attributes will be displayed according to the layer(s) it belongs to: eg: Layer1 Attr1 Attr2 Layer2 Attr1 If it is false then the outliner will be organized primarily by attributes. eg: Attr1 Layer1 Layer2 Attr2 Layer1 |
|||
panel (pnl) | unicode | ||
Specifies the panel that the editor belongs to. By default if an editor is created in the create callback of a scripted panel it will belong to that panel. If an editor doesn’t belong to a panel it will be deleted when the window that it is in is deleted. |
|||
parent (p) | unicode | ||
|
|||
parentObject (po) | bool | ||
pinPlug (pin) | PyNode | ||
|
|||
selectCommand (sec) | callable | ||
|
|||
selectionConnection (slc) | unicode | ||
Specifies the name of a selectionConnection object which the editor will synchronize with its own selection list. As the user selects things in this editor, they will be selected in the selectionConnection object. If the object undergoes changes, the editor updates to show the change. |
|||
setFilter (sf) | unicode | ||
|
|||
setsIgnoreFilters (sif) | bool | ||
|
|||
showAnimCurvesOnly (aco) | bool | ||
This flag modifies the showConnected flag. If showConnected is set to true then this flag will cause display of only those attributes that are connected to an animCurve. If showConnected is set to false then this flag does nothing. |
|||
showAnimLayerWeight (saw) | bool | ||
|
|||
showAssets (a) | bool | ||
|
|||
showAttrValues (av) | bool | ||
|
|||
showAttributes (atr) | bool | ||
|
|||
showCompounds (cmp) | bool | ||
This flag specifies whether or not compound attributes should be displayed, or just the leaf attributes Note: if showConnected is true, and the compound attribute is connected, it will still be displayed |
|||
showConnected (con) | bool | ||
This flag modifies the showAttributes flag. If showAttributes is set to true then this flag will cause display of only those attributes that are connected in the dependency graph. If showAttributes is set to false then this flag does nothing. |
|||
showContainedOnly (sco) | bool | ||
|
|||
showContainerContents (scc) | bool | ||
|
|||
showDagOnly (dag) | bool | ||
|
|||
showLeafs (laf) | bool | ||
This flag specifies whether or not leaf attributes should be displayed, or just the compound attributes Note: if showConnected is true, and the leaf attribute is connected, it will still be displayed |
|||
showMuteInfo (smi) | bool | ||
showNamespace (sn) | bool | ||
|
|||
showNumericAttrsOnly (num) | bool | ||
This flag specifies whether or not all attributes should be displayed, or just numeric attributes Note: if showConnected is true, and the attribute is connected, it will still be displayed |
|||
showPinIcons (spi) | bool | ||
|
|||
showPublishedAsConnected (spc) | bool | ||
|
|||
showSelected (sc) | bool | ||
|
|||
showSetMembers (ssm) | bool | ||
|
|||
showShapes (shp) | bool | ||
|
|||
showTextureNodesOnly (tno) | bool | ||
This flag modifies the showConnected flag. If showConnected is set to true then this flag will cause display of only those attributes that are connected to a texture node. If showConnected is set to false then this flag does nothing. |
|||
showUVAttrsOnly (uv) | bool | ||
This flag specifies whether or not all attributes should be displayed, or just uv attributes Note: currently the only attribute which will be displayed is Shape.uvSet.uvSetName |
|||
showUnitlessCurves (su) | bool | ||
|
|||
showUpstreamCurves (suc) | bool | ||
Specifies exactly which attributes are displayed when showAttributes and expandConnections are both true. If true, the dependency graph is searched upstream for all curves that drive the selected plugs (showing multiple curves for example in a typical driven key setup, where first the driven key curve is encountered, followed by the actual animation curve that drives the source object). If false, only the first curves encountered will be shown. Note that, even if false, multiple curves can be shown if e.g. a blendWeighted node is being used to combine multiple curves. |
|||
sortOrder (so) | unicode | ||
Specify how objects are to be sorted. Current recognised values are nonefor no sorting and dagNameto sort DAG objects by name. Notes: a) non-DAG objects are always sorted by nodeType and name. b) when sortOrder is set to dagName, objects cannot be reordered using drag-and-drop, they can however be reparented |
|||
stateString (sts) | bool | ||
Query only flag. Returns the MEL command that will edit an editor to match the current editor state. The returned command string uses the string variable $editorName in place of a specific name. |
|||
transmitFilters (tf) | bool | ||
This flag specifies how the selectionConnection is populated when attribute filters are enabled. If this flag is set to true, then all the attributes that pass the filter will be placed on the selectionConnection. By default this flag is false |
|||
unParent (up) | bool | ||
|
|||
unlockMainConnection (ulk) | bool | ||
|
|||
unpinPlug (unp) | PyNode | ||
|
|||
updateMainConnection (upd) | bool | ||
|
|||
useTemplate (ut) | unicode | ||
|
Derived from mel command maya.cmds.outlinerEditor
Example:
import pymel.core as pm
# Create a new regular outliner in its own window
#
pm.window()
# Result: ui.Window('window1') #
pm.frameLayout( labelVisible=False )
# Result: ui.FrameLayout('window1|frameLayout8') #
panel = pm.outlinerPanel()
outliner = pm.outlinerPanel(panel, query=True,outlinerEditor=True)
pm.outlinerEditor( outliner, edit=True, mainListConnection='worldList', selectionConnection='modelList', showShapes=False, showAttributes=False, showConnected=False, showAnimCurvesOnly=False, autoExpand=False, showDagOnly=True, ignoreDagHierarchy=False, expandConnections=False, showNamespace=True, showCompounds=True, showNumericAttrsOnly=False, highlightActive=True, autoSelectNewObjects=False, doNotSelectNewObjects=False, transmitFilters=False, showSetMembers=True, setFilter='defaultSetFilter' )
pm.showWindow()