-
Notifications
You must be signed in to change notification settings - Fork 29
Installation
This guide is about installing the developer version of Pyblish, and how to get it up and running with the integration for Autodesk Maya.
Before we start, here's what you'll need:
- Autodesk Maya 2014 or newer
- Git
The integration runs on-top of the main Pyblish Python library which we can install via the command-line. Browse to a directory in which you'd like to install Pyblish and run the following command:
$ cd github
$ git clone https://github.com/abstractfactory/pyblish.git
Typically, when installing a Python library it would appear together with your other Python libraries within site-packages
.
# For example
c:/Python27/Lib/site-packages/pyblish
But since this is the developer installation of Pyblish, we'll have to expose the library on our own. To do this, append the repository you just downloaded above to your PYTHONPATH environment variable. If you haven't got a PYTHONPATH variable, simply create one.
# For example
$ setx PYTHONPATH=%PYTHONPATH%;c:/github/pyblish
For help with adding environment variables on Windows, see here: http://www.computerhope.com/issues/ch000549.htm
As before, via the command-line, either stay in the same directory as before, or browse to where you'd like to install the Maya integration and run:
$ git clone https://github.com/abstractfactory/pyblish-maya.git
And again, append this path to your PYTHONPATH as well. In addition, append the inner directory pythonpath
as well. This is what will append a file-menu item to your Maya File menu so that you can publish.
# For example
$ setx PYTHONPATH=%PYTHONPATH%;c:/github/pyblish-maya
$ setx PYTHONPATH=%PYTHONPATH%;c:/github/pyblish-maya/pyblish_maya/pythonpath