The cmds.TextureViewWindow() doesn't return anything. It only shows the singleton texture editor. The docs say only one can exist at any time: http://download.autodesk.com/global/docs/maya2012/en_us/CommandsPython/textureWindow.html
This would mean that if you were to embed it into your own UI, it would steal from anywhere else that is showing it, and likewise if anywhere else wanted to show it, your UI would lose the widget. On Tue, Aug 12, 2014 at 11:06 PM, likage <[email protected]> wrote: > Hi all, pardon me if my thread title is misleading. > I was utterly lost in this code that I was doing as I am understanding how > it works. > > I used the same method with the Hypershade or hyperPanel and it works > fine. But as I tried it along with graph editor, UV texture window etc. I > keep getting the error: > > > > *# (out_panel1, "right", 0)# RuntimeError: Object '' not found. # *While > executing it, the 'wrong' window was prompted instead of this custom ui i > did. > Any ideas? > > def ui(): > main_win = cmds.window(win_name, title = "TEST", width = 600, height = > 600) > tab_win = cmds.tabLayout() > > out_layout1 = cmds.formLayout("textureWin", parent = tab_win) > out_panel1 = cmds.TextureViewWindow() > > cmds.formLayout(out_layout1, edit = True, > attachForm=[ > (out_panel1, "top", 0), > (out_panel1, "left", 0), > (out_panel1, "bottom", 0), > (out_panel1, "right", 0) > > > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/e5e0e044-ffd5-45e9-96ed-be3e73153240%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/e5e0e044-ffd5-45e9-96ed-be3e73153240%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2xmxNp7f73TD70A_5wBfUSp7t4Co2iXyqCvtQLHzMM9A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
