Quick start with pycuerun
Learn how to use pycuerun to submit and execute PyOutline job scripts on the OpenCue render farm.
What is pycuerun?
PyCuerun is the command-line tool for launching PyOutline scripts to OpenCue. It handles job submission, frame execution, and provides options for pausing, waiting, debugging, and inspecting outline jobs.
Note: PyCuerun depends on PyOutline, the Python library that defines job structure. PyOutline builds the job; pycuerun submits it. Both are installed together as part of the
opencue-pyoutlinepackage.
Before you begin
Ensure you have:
- OpenCue sandbox environment running
- Python 3.8 or later installed
- PyCue and PyOutline installed (
pip install opencue-pycue opencue-pyoutline) CUEBOT_HOSTSenvironment variable set
Step 1: Create an outline script
Create a file called render.outline:
import outline.modules.shell
outline.modules.shell.Shell(
"render",
command=["echo", "Rendering frame #IFRAME#"],
range="1-10"
)
Step 2: Submit the job
pycuerun render.outline
Step 3: Customize the submission
Override the frame range:
pycuerun -f 1-50 render.outline
Launch in a paused state (requires manual resume):
pycuerun -p render.outline
Wait for the job to complete before returning:
pycuerun -w render.outline
Submit to a specific facility:
pycuerun -F my_facility render.outline
Step 4: Inspect a script
View the structure of an outline script without submitting it:
pycuerun -i render.outline
Step 5: Execute a single frame locally
Execute frame 5 of the “render” layer for debugging:
pycuerun -e 5-render render.outline
Common options summary
| Option | Description |
|---|---|
-f RANGE |
Set frame range (e.g., 1-100, 1,5,10) |
-p |
Launch paused |
-w |
Wait for job completion |
-t |
Wait and fail if job fails |
-F FACILITY |
Set job facility |
-e FRAME |
Execute a specific frame locally |
-i |
Inspect script structure |
-D |
Enable debug logging |
--env k=v |
Set environment variables |