title | linkTitle | weight | date | description |
---|---|---|---|---|
Installing CueSubmit |
Installing CueSubmit |
7 |
2019-02-22 |
Install CueSubmit to submit render jobs
|
The OpenCue job submission GUI.
This is a Python-based QT app through which you can submit jobs to an OpenCue deployment. It can run as a standalone application, or as a plug-in for applications that support PySide2 integration, such as Autodesk's Maya or Foundry's Nuke.
-
Before you start to work through this guide, complete the steps in Installing PyCue and PyOutline.
-
You need the same Cuebot hostname that you used to configure PyCue in this guide as well. If you don't know the Cuebot hostname, check with your OpenCue admin. After you know this, set the
CUEBOT_HOSTNAME_OR_IP
environment variable:export CUEBOT_HOSTNAME_OR_IP=localhost
-
To follow the instructions in this guide, you'll need the following software:
- Python
- pip Python package manager
- virtualenv tool
CueSubmit is written in Python. To run CueSubmit, you install a series of dependencies and configure a virtual environment for the Python code to run inside.
-
To install the required Python packages, create an isolated Python environment:
{{% alert title="Note" color="info"%}}Use of a virtual environment isn't strictly necessary but is recommended to avoid conflicts with other locally installed Python libraries. If you already created a virtual environment in which to install PyCue, skip this step and use PyCue's environment for the following steps.{{% /alert %}}
virtualenv venv
-
Evaluate the commands in the
activate
file in your current shell:TIP: To review the contents of the
activate
file, runcat activate
.source venv/bin/activate
-
Visit the OpenCue releases page.
-
Download the cuesubmit tarball from the latest release's Assets.
-
Run the following commands in a terminal to install a
cuesubmit
executable in thePATH
of your environment:export CUESUBMIT_TAR="<path to cuesubmit tar.gz>" export CUESUBMIT_DIR=$(basename "$CUESUBMIT_TAR" .tar.gz) tar xvzf "$CUESUBMIT_TAR" cd "$CUESUBMIT_DIR" pip install -r requirements.txt python setup.py install
-
Run CueSubmit:
CUEBOT_HOSTS=$CUEBOT_HOSTNAME_OR_IP cuesubmit
Make sure you've checked out the source code and your current directory is the root of the checked out source.
pip install -r requirements.txt
cd cuesubmit
You can either install CueSubmit from here and run the cuesubmit
executable
that gets created:
python setup.py install
cd ..
CUEBOT_HOSTS=$CUEBOT_HOSTNAME_OR_IP cuesubmit
OR you can run the software directly, without installing:
CUEBOT_HOSTS=$CUEBOT_HOSTNAME_OR_IP PYTHONPATH=$PYTHONPATH:. python ./cuesubmit
CueSubmit comes packaged with plug-ins for Maya and Nuke. These plug-ins can serve as a template if you wish to write new plug-ins on your own.
To install the Maya plug-in:
-
Create or locate your
Maya.env
file as described in Setting environment variables using Maya.env. -
Add the following content:
# Point Maya to the CueSubmit install. PYTHONPATH=$PYTHONPATH;<cuesubmit install path>/plugins/maya XBMLANGPATH=$XBMLANGPATH;<cuesubmit install path>/plugins/maya # Help OpenCue find the library dependencies it needs. CUE_PYTHONPATH=<path to virtualenv>/lib/python2.7/site-packages # The hostname of your Cuebot instance. CUEBOT_HOSTS=localhost
-
Restart Maya.
Maya should now contain a new "OpenCue" shelf with a single "Render on OpenCue" item.
To install the Nuke plug-in:
-
Create a
menu.py
file or locate your existing one as described in Defining Custom Menus and Toolbars. -
Add the following content:
import os import nuke # Path to Python binary used to execute the CueSubmit app. If you set up # virtualenv, use this path. If you're using a systemwide Python install, # you can probably set this to be just "python". os.environ['CUE_PYTHON_BIN'] = '<path to virtualenv>/bin/python' # Hostname of your Cuebot instance. os.environ['CUEBOT_HOSTS'] = 'localhost' nuke.pluginAddPath('<path to cuesubmit install>/plugins/nuke')
-
Restart Nuke.
Nuke should now contain a new menu item "Render > Render on OpenCue".