0

I want to add maya outliner inside of the existing tabLayout

I came across a page that shows how to do it in MEL(the second method)

how would I do that in python ?

myOut= cmds.outlinerPanel()
cmds.control(edit=True,parent="outlinerLayout"  myOut)

the above gives syntax error, I guess I am doing it wrong in translating mel code to python code(i want in python coz the whole existing GUI app is done in python) and I want to implement the idea of having outliner tabbed into my project manager for the user removing the hassle of launching Outliner separately..

Ciasto piekarz
  • 7,853
  • 18
  • 101
  • 197

1 Answers1

0

Lets say it's a coma error:

myOut= cmds.outlinerPanel()
cmds.control(myOut, edit=True, parent="outlinerLayout")

Check out the Documentation:

cmds.control

cmds.outlinerPanel

Anyewy I would Highly suggest you to use PyMel instead of maya python, it's a better pythonic way to code in Maya. And also PYQT4 will make UI build up easier.

Netwave
  • 40,134
  • 6
  • 50
  • 93
  • 1
    yes Daniel, it was comma error , and now I dont know why I get the outliner like this[link](https://lh4.googleusercontent.com/-75qqld3GrQA/UL8qd6ax8nI/AAAAAAAADeY/ALeeZBNrJtM/s512/theproblemo.PNG) – Ciasto piekarz Dec 05 '12 at 11:07
  • It sounds like it is not refreshing or something like that, could you please show me some more code? Look for a PYQT4 change in your code if it is not too much developed already, I think it will speed up things. – Netwave Dec 05 '12 at 11:11
  • 1
    I am new to PyQt4 and not much familiar with it so as of now Command module is all i have for GUI, atm I am looking for learning resources for PyQt4 for maya instead of making a QApplication... – Ciasto piekarz Dec 05 '12 at 12:54
  • now that the outliner shows in the beginning but when i open new scene it is not their iin the second outliner tab and when i query it it turs out to be false , what is makeing its existance to be false and how should i show it up again ? – Ciasto piekarz Dec 06 '12 at 05:45