Hi all, I am trying to create a custom UI in which there will be tabs side by side where it will display the Outliner, hypershade etc.
I am trying to create the UI from scratch…
Currently I am running into a problem in which my second tab instead of appearing right beside the Outliner tab (when the tab is to selected), it is appearing below the outliner.
Furthermore, I noticed that I have 2 Outliners (One hidden unless I draw it up)
I have attached pictures for references.
Would appreciate for any advices given.
win = cmds.window(w=400, h=600)
tab = cmds.tabLayout()
panelLayout = cmds.formLayout("Outliner")
panel = cmds.outlinerPanel()
cmds.formLayout(panelLayout, e=True,
attachForm=[
(panel, "top", 0),
(panel, "left", 0),
(panel, "bottom", 0),
(panel, "right", 0)
])
panelLayout1 = cmds.formLayout("Hypershade")
panel1 = cmds.hyperPanel()
cmds.formLayout(panelLayout1, e=True,
attachForm=[
(panel1, "top", 0),
(panel1, "left", 0),
(panel1, "bottom", 0),
(panel1, "right", 0)
])
cmds.showWindow(win)