Get Started¶
Developing the package¶
If you are a pipeline developer, that wants to improve the jukebox pipeline directly follow this guide:
Clone the repository from either github or stash. See Git for more information.
Read the Python article on how to setup virtual environments and read the coding conventions. In short: make sure to have Python 2.7 installed. I recommend 64-bit version.
Install jukemaya in development mode. Follow the Installation guide but install jukebox maya like this:
$ pip install -e path/to/jukeboxmayarepositoryIf the psycopg2 dependency fails to install with pip, see Installation for more information.
Follow the Database guide and make sure to have a configured database and userconfig.
See Installation on install the code for maya.
Create a new gitbranch, write your code and tests. Read the Unittests for more information on how to test. To simply test everything use:
$ toxCommit your code. If tests are successful merge your branch in dev. See ref:jukeboxcore:git for more information on the branching model we use.
Developing a addon for jukebox¶
If you want to create addons for jukebox follow this guide:
- Make sure you have Python 2.7 installed. I recoomend the 64-bit version.
- Install jukeboxmaya as explained here.
- Follow the Database guide and make sure to have a configured database and userconfig.
- Create folder or package for your addon code.
- Edit your pluginpaths in the userconfiguration and append the new folder to the paths. Multiple paths are seperated by either : on linux or ; on windows. See the Configuration guide for more information. Alternatively you can set the environment variable JUKEBOX_PLUGIN_PATHS.
- Create a python file in your new folder and start coding the plugin. Create a new subclass from one of the jukeboxmaya.plugins.JB_MayaPlugin classes and implement the abstract functions. The jukeboxmaya.plugin.MayaPluginManager is used for loading and initializing the plugins.