Pyblish integration for Autodesk Maya 2008-2019.
What is included?
A set of common plug-ins and functions shared across other integrations - such as getting the current working file. It also visually integrates Pyblish into the File-menu for easy access.
pyblish-maya depends on pyblish-base and is available via PyPI.
$ pip install pyblish-maya
To get started using pyblish-maya, run
setup() at startup of your application.
# 1. Register your favourite GUI import pyblish.api pyblish.api.register_gui("pyblish_lite") # 2. Set-up Pyblish for Maya import pyblish_maya pyblish_maya.setup()
Under the hood
setup() command will:
mayapyas as a "host" to Pyblish, allowing plug-ins to be filtered accordingly.
- Append a new menu item, "Publish" to your File-menu
- Register a minimal set of plug-ins that are common across all integrations.
Should you not want a menu-item, pass
import pyblish_maya pyblish_maya.setup(menu=False)
Manually show GUI
The menu-button is set to run
show(), which you may also manually call yourself, such as from a shelf-button.
import pyblish_maya pyblish_maya.show()
To get rid of the menu, and completely remove any trace of pyblish-maya from your Maya session, run
import pyblish_maya pyblish_maya.teardown()
This will do the opposite of
setup() and clean things up for you.
In the event that no GUI is registered upon running
setup(), the button will provide the user with this information on how they can get up and running on their own.