Working with Maya shelves

Like menus, Maya's shelves are an abstraction above plain Qt. Working with them at the Qt level allows you to do things like place arbitrary widgets into a shelf, as in the following image:

Working with Maya shelves

You can work with shelves using most of the same techniques we used for menus. However, there is one major problem. We can create custom menus directly using Qt because users do not customize their menu setup heavily. Users do customize their shelves, however, and expect these customizations to persist across sessions. Nearly every aspect of a shelf and its buttons can be customized. Shelves are persisted as MEL files, though, so any ...

Get Practical Maya Programming with Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.