Thank you for the response! This was helpful as I didn’t know I could create and pass a filter at instantiation of the Outliner Editor. I’m using Python for this script, so I wasn’t able to translate your code sample, unfortunately.
I have a couple follow-up questions:
- If I run the following code per the documentation plus pass a filter, it creates an Outliner Editor, but the filtering doesn’t seem to work (screenshot).
import pymel.core as pm
pm.frameLayout( labelVisible=False )
panel = pm.outlinerPanel()
outliner = pm.outlinerPanel(panel, query=True,outlinerEditor=True)
spotlight = pm.itemFilter(byType='spotLight')
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=spotlight)
- Where can I find the list of the types acceptable to use with the filter? In the documentation all they mention is ‘transform’ and ‘spotlight.’ As mentioned in the original post, I want to filter the Outliner so it shows the same object sets that it would show if I applied Show > Objects > Sets from the Outliner’s menu.