The Layout command has flags for retrieving the children, but the various 'Panel' and 'Editor' commands don't seem to offer the same functionality.
I am trying to work out the name of an editor, given the results from:
animCurvePanel = cmds.getPanel(scriptType='graphEditor')
# Result: [u'graphEditor1'] #
From 'graphEditor1' i want to derive the name of the actual editor (which by default is 'graphEditor1GraphEd', but I hate making assumptions)
If I assume I already know the name of the editor, I can get the full path to the editor with:
cmds.animCurveEditor('graphEditor1GraphEd', query=True, control=True)
# Result: graphEditor1Window|TearOffPane|graphEditor1|formLayout55|paneLayout2|graphEditor1GraphEd #
My question is, how can i get 'formLayout55' from 'graphEditor' so I ca walk down the UI to the Graph Editor?
Thanks. Seems simple and I feel like I'm missing something super obvious...