modify modelPanel layout and behaviour

35 views
Skip to first unread message

daniele...@gmail.com

unread,
Jul 7, 2015, 4:11:10 AM7/7/15
to python_in...@googlegroups.com
I'm working on my first script in python. It should be just a 2 tabs script, on one tab there will be the character picker, on the second tab there should be a camera view with the face GUI.

I'd like to get rid of the red circled menu (which you can see here http://postimg.org/image/fozvc010x/) and lock the view in that way, forbidding zoom and pan.

I tried to search on the maya help but it is not very clear for me.

I also attach the code responsible for that view.

FacialGUI = cmds.formLayout()



FacialPanel = cmds.modelPanel(camera = "facial_cam")
cmds.formLayout(FacialGUI, e=True,
attachForm=[
(FacialPanel, "top", 0),
(FacialPanel, "left", 0),
(FacialPanel, "bottom", 0),
(FacialPanel, "right", 0)
])


cmds.setParent( '..' )
Thanks, Daniele!

Justin Israel

unread,
Jul 7, 2015, 5:13:18 AM7/7/15
to python_in...@googlegroups.com
Have you tried taking a look at the modelEditor documentation? If you don't want the menu bar, then maybe you just want to embed the editor?


It has a bunch of options on what you can enable for the editor.


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d17ad4fd-ce68-4f62-ab64-e52b4c88b2f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages