Community
Maya Programming
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya SDK topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Tear off panels missing menu bar option

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
robwiese149
2266 Views, 5 Replies

Tear off panels missing menu bar option

robwiese149
Contributor
Contributor

Hey there.

I have a python tool I've written that I run when I startup Maya 2018 to create my workspace layout which I will save to a Maya workspace eventually. 

 

My tool currently just sets the main window's layout to docked outliner and turns textures on in modelPanel4. Then it creates a tear off window (with modelPanel) and opens the graph editor. The tear off window however no longer has the "Panels" dropdown menu. I use this same script on Maya 2016 and the "Panels" menu is there so I'm confused as to why all of a sudden it is no longer in there when I create a new window with a modelPanel.

 

Here is my code currently:

cmds.window("camWin", title="RenderCam Window", topLeftCorner=(0, 1920), widthHeight=(1150, 560))
cmds.paneLayout("playBpane", width=640, height=275)
	camModelPanel = cmds.modelPanel("renderCamModelPanel", menuBarVisible=True, barLayout=True, modelEditor=True)
cmds.showWindow("camWin")

I want this Menubar:

menuBar.JPG

But I get this menu bar with the code above (with the missing "Panels" dropdown menu):

menuBar2.JPG

Would really like to have this functionality back for my tear off window because I use multiple cameras in the scene at a time.

 

Thanks for the help!

0 Likes

Tear off panels missing menu bar option

Hey there.

I have a python tool I've written that I run when I startup Maya 2018 to create my workspace layout which I will save to a Maya workspace eventually. 

 

My tool currently just sets the main window's layout to docked outliner and turns textures on in modelPanel4. Then it creates a tear off window (with modelPanel) and opens the graph editor. The tear off window however no longer has the "Panels" dropdown menu. I use this same script on Maya 2016 and the "Panels" menu is there so I'm confused as to why all of a sudden it is no longer in there when I create a new window with a modelPanel.

 

Here is my code currently:

cmds.window("camWin", title="RenderCam Window", topLeftCorner=(0, 1920), widthHeight=(1150, 560))
cmds.paneLayout("playBpane", width=640, height=275)
	camModelPanel = cmds.modelPanel("renderCamModelPanel", menuBarVisible=True, barLayout=True, modelEditor=True)
cmds.showWindow("camWin")

I want this Menubar:

menuBar.JPG

But I get this menu bar with the code above (with the missing "Panels" dropdown menu):

menuBar2.JPG

Would really like to have this functionality back for my tear off window because I use multiple cameras in the scene at a time.

 

Thanks for the help!

5 REPLIES 5
Message 2 of 6
sean.heasley
in reply to: robwiese149

sean.heasley
Alumni
Alumni

Hi @robwiese149

 

Thanks for attaching the code!

 

This looks like it may be a change with our code and how it recognizes the panel views. I feel like I've seen this issue in the past but I can't recall so I'm going to pass this along to our developers and see if they have any insight on what changes could be made to the code and/or if this is by design.

 

 

0 Likes

Hi @robwiese149

 

Thanks for attaching the code!

 

This looks like it may be a change with our code and how it recognizes the panel views. I feel like I've seen this issue in the past but I can't recall so I'm going to pass this along to our developers and see if they have any insight on what changes could be made to the code and/or if this is by design.

 

 

Message 3 of 6
sean.heasley
in reply to: sean.heasley

sean.heasley
Alumni
Alumni

Hi @robwiese149

 

I'm still waiting on hearing back from the devs but I think this may be a design set up with tear off copies of the viewport.

 

I noticed in 2016, 17 and 18 that even manually using Tear Off a Copy wont show the Panels view. Its possible this may be by design but I'l let you know if I find a potential workaround!

 

 

0 Likes

Hi @robwiese149

 

I'm still waiting on hearing back from the devs but I think this may be a design set up with tear off copies of the viewport.

 

I noticed in 2016, 17 and 18 that even manually using Tear Off a Copy wont show the Panels view. Its possible this may be by design but I'l let you know if I find a potential workaround!

 

 

Message 4 of 6
robwiese149
in reply to: sean.heasley

robwiese149
Contributor
Contributor
Accepted solution

Thanks Sean for checking it out. I appreciate the help. I did notice that I can right click the camera button at the top left of the viewport and that gives me a dropdown menu of all the cameras too. It's a workaround for now and I can work with it if the code has changed how new panels operate. 

Thanks Sean for checking it out. I appreciate the help. I did notice that I can right click the camera button at the top left of the viewport and that gives me a dropdown menu of all the cameras too. It's a workaround for now and I can work with it if the code has changed how new panels operate. 

Message 5 of 6
sean.heasley
in reply to: robwiese149

sean.heasley
Alumni
Alumni

Hi @robwiese149

 

I think that may be your best bet at least for the time being. It's an interesting issue for sure but I'm curious if the reason behind it is that you could manually tear off multiple copies with different settings, instead of tearing off a copy of an already torn of copy. May just be a current limitation with 2018.

 

 

0 Likes

Hi @robwiese149

 

I think that may be your best bet at least for the time being. It's an interesting issue for sure but I'm curious if the reason behind it is that you could manually tear off multiple copies with different settings, instead of tearing off a copy of an already torn of copy. May just be a current limitation with 2018.

 

 

Message 6 of 6
scapitta
in reply to: robwiese149

scapitta
Explorer
Explorer

Hi, I have a similar problem. I am missing the Panels dropdown menu for the graph editor. Is there a way you can help me to show it? My graph editor is not working, it is blank and the only workaround for this bug seems to tear off it through the panel - tear off menu, that I don`t have in my graph editor. Thank you, if you could help it would be really appreciated

0 Likes

Hi, I have a similar problem. I am missing the Panels dropdown menu for the graph editor. Is there a way you can help me to show it? My graph editor is not working, it is blank and the only workaround for this bug seems to tear off it through the panel - tear off menu, that I don`t have in my graph editor. Thank you, if you could help it would be really appreciated

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report