Shelves within a Shelf ?

58 views
Skip to first unread message

Christopher.

unread,
Jun 20, 2015, 6:31:54 PM6/20/15
to python_in...@googlegroups.com
Has anyone put shelves within a Maya shelf ? I though I could nest a global proc within a global proc, then name the shelf and somehow, I would get a shelf within a shelf, unfortunately, no

Justin Israel

unread,
Jun 20, 2015, 7:02:54 PM6/20/15
to python_in...@googlegroups.com
You *can*, in general, do a layout where you have a shelf tab that nests another tabbed shelf layout. But as for getting the standard maya shelf to do it, you would have to completely lay out your own top level shelf tab so that its layout is a tabbed shelf layout. It would probably be harder to do it dynamically to an existing shelf.

It makes no sense to nest a global proc within a global proc, since when you think about scope it is not global to have a function defined locally within another function. A global proc is something that is exported to the rest of the app. Just try playing around with the explicit layout you want to achieve, within the body of a single global proc.

On Sun, Jun 21, 2015 at 10:31 AM Christopher. <crestchr...@gmail.com> wrote:
Has anyone put shelves within a Maya shelf ? I though I could nest a global proc within a global proc, then name the shelf and somehow, I would get a shelf within a shelf, unfortunately, no

--
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/80e6a84c-9f9e-4c1b-9a56-b392a94e68e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Crest Christopher

unread,
Jun 20, 2015, 8:18:03 PM6/20/15
to python_in...@googlegroups.com
Just try playing around with the explicit layout you want to achieve, within the body of a single global proc.

I'm not quite sure what direction I need to take ?

Justin Israel wrote:
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/CD4X5TWBPkE/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAPGFgA1XujEE%3DaDQoZkcPfHMWp7Y_KEkMNihpvZc026z-5dmRg%40mail.gmail.com.

Crest Christopher

unread,
Jun 20, 2015, 10:33:36 PM6/20/15
to python_in...@googlegroups.com
I wasn't aware it's exported to the rest of the app.  Since a global proc is similar if not the same as a function.  I assumed if I nest a global proc within another, one would call the other, hrm, it may have been dumb to assume; considering you can nest conditions.

One issue is the placement of the nested tabs, since Maya shelf creates a tab for the shelf, obviously, how would Maya display the tabs within the shelf, I have an idea on how it should look, not sure Maya can share the same goal.

Justin Israel wrote:
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/CD4X5TWBPkE/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAPGFgA1XujEE%3DaDQoZkcPfHMWp7Y_KEkMNihpvZc026z-5dmRg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages