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..

1 Answer 1

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.

4
  • 1
    yes Daniel, it was comma error , and now I dont know why I get the outliner like thislink Dec 5, 2012 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 5, 2012 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... Dec 5, 2012 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 ? Dec 6, 2012 at 5:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.