Developers
Pipeline Integration & Automation
The apps run without a window, print a short JSON summary and exit with a code a script can read. Call them from Houdini TOP and PDG, a farm manager or a shell script.
Integration Paths
Ways to Integrate
Command-Line Interface
Scope, Paint and Review run without a window: conversions, batch exports, Natron and OpenFX renders, timelines for the editor. One JSON summary, one set of exit codes.
Batch Processing
Process entire sequences, folders, or file lists in a single command. Each step in the 8-stage pipeline is independently configurable per batch run.
Houdini TOP / PDG
Launch Scope as an external process from a TOP network, and schedule, track and parallelize image processing across farm nodes.
External Process
Anything that can invoke a subprocess can call Scope: Deadline, Tractor, Rush, NIM, ShotGrid, custom pipeline tools or shell scripts.
CLI Usage
Command-Line Interface
The command is the application itself, from the package. Every flag is documented in
--help.
On Windows it has no console window of its own: call it from a script (a subprocess, a TOP node, a farm job) or redirect its output to a file to read what it prints.
# The application itself runs the command (Windows: scope/Spectra.exe)
SCOPE="/opt/spectra-gfx/scope/Spectra"
# Convert a single file
"$SCOPE" batch -i source.exr -o ./out --format PNG
# Batch convert a folder, EXR deliverables with a real colourspace conversion
"$SCOPE" batch -i "/shots/renders/*.exr" -o "/shots/deliver" --format EXR \
--ocio-src "ACEScg" --ocio-dst "Linear Rec.709 (sRGB)" \
--exr-compression DWAA --exr-half
# Resize and rename a sequence
"$SCOPE" batch -i "/shots/plates/*.exr" -o "/shots/out" --format PNG \
--resize 1920x1080 --resample Lanczos --rename "plate_{n:04d}"
# Machine-readable summary for a farm wrapper - one JSON object, last line of stdout
"$SCOPE" batch -i "/shots/plates" -o "/shots/out" --format PNG --quiet --json
# Validate a job without writing anything
"$SCOPE" batch -i "/shots/plates" -o "/shots/out" --format EXR --dry-run --json
# Houdini TOP / PDG - environment variable pattern
"$SCOPE" batch -i "$HOUDINI_TEMP/frame_$F4.exr" \
-o "$JOB/delivery" --format EXR --exr-compression ZIP --quiet --json
# Windows: "paint/Paint.exe" and "review/Review.exe"
PAINT="/opt/spectra-gfx/paint/Paint"
REVIEW="/opt/spectra-gfx/review/Review"
# Paint: render a Natron comp with the studio's OpenFX plug-ins, as scene-linear EXR
"$PAINT" natron render sh010_comp.ntp sh010_comp.exr --plugins /opt/ofx --json
# Paint: one OpenFX plug-in on one plate, parameters by name
"$PAINT" ofx render net.sf.cimg.CImgBlur plate.exr soft.exr --param size=4,4 --linear
# Paint: an EXR through a Filmic view to a 16-bit PNG
"$PAINT" convert render.exr preview.png --linear --view Filmic --exposure 0.5 --depth 16
# Paint: an animation with its soundtrack
"$PAINT" timeline export shot.spp shot.avi --fps 24
# Paint: the same animation with its subtitles drawn into the pictures
"$PAINT" timeline export shot.spp shot_subs.avi --burn-captions
# Paint: a folder for the editor (picture, sounds, subtitles, FCPXML, ALE)
"$PAINT" timeline package shot.spp handoff/
# Paint: how loud is the soundtrack, and what gain reaches -23 LUFS
"$PAINT" audio loudness shot.spp --target -23
# Review: the plates of a comp as a review timeline for the editor
"$REVIEW" timeline export sh010_comp.ntp --otio review.otio \
--edl markers.edl --edl-style both --fps 24
Exit codes a wrapper script or a PDG work item can branch on:
0: every file converted with no error1: at least one file failed (see stderr or theerrorsarray of the JSON report)2: bad arguments, an unreachable OCIO config or an unknown colourspace name, checked before a single file is touched
Houdini Integration
TOP / PDG Batch Workflow
Drive image processing through Houdini's Task Operator and PDG networks, on local machines or a render farm.
Source File Input TOP
Define input paths with a File Pattern or File Glob TOP.
Generic Generator / Python Script TOP
Construct the command per work item, or write one --manifest JSON file per work item instead of a very long command line.
Command Runner TOP
Execute the CLI with --json. PDG tracks failure from the exit code; the JSON object on stdout gives the file count, elapsed time and per-file errors.
Downstream Merge / ROP
Collect results for compositing, versioning, delivery packaging, or QC review in Review.
import json
import pdg
def cookTask(work_item):
frame = work_item.intAttribValue("frame")
src = work_item.stringAttribValue("source_path")
dst = work_item.stringAttribValue("output_dir")
cmd = [
"/pipeline/spectra-gfx/scope/Spectra", "batch", # Windows: ...\scope\Spectra.exe
"-i", src, "-o", dst, "--format", "EXR",
"--ocio-src", "ACEScg", "--ocio-dst", "Linear Rec.709 (sRGB)",
"--exr-compression", "DWAA",
"--quiet", "--json",
]
return pdg.ExternalProcessCommand(cmd)
def onSuccessfulCook(work_item, task):
# The last line of stdout is the JSON summary: file counts, elapsed time,
# and the exact per-file errors, if the CLI still returned 0 with a
# partial failure recorded for a downstream stage to decide about.
summary = json.loads(task.stdout().strip().splitlines()[-1])
work_item.setStringAttrib("spectra_version", summary["version"])
work_item.setIntAttrib("frame_count", summary["input_count"])
Batch Pipeline
Non-Destructive Pipeline
The batch pipeline is the same in the GUI and the CLI. Each step is optional and configured per run.
Steps: colour profile (ICC or OCIO), adjustments, resize, dithering, convolution, watermark, alpha pairing, save.
Output: JPEG, PNG, WebP, TIFF (8, 16 or 32-bit), BMP, TGA, OpenEXR float32 or DPX.
Architecture
Fast, and the Same Everywhere
Scales With The Machine
Compositing, filtering and proxy rendering split across every available core. A cold full-frame recompose of a 2048² five-layer document: 1070 ms to 251 ms.
Safe With Awkward Files
Every file header is checked against the bytes really there before memory is set aside, and plug-ins run in their own process. A damaged frame fails that job, not the machine.
Same Input, Same Output
The parallel and compiled paths are checked byte for byte against the single-threaded reference, so a render on a farm node matches the one on your desk.
Air-Gapped Friendly
No activation, no cloud check, no phone-home: works in air-gapped studio and farm environments, and can be vendored into your own pipeline.
Workbench
The Editor for the Glue Code In Between
The command lines and work-item scripts above have to be written somewhere. Spectra Workbench edits Python, VEX, C#, GLSL, USD and MaterialX in one window, with real diagnostics and Houdini and Unity bridges.
Its DCC link with Houdini opens files from the scene and reports each save back.
Related
Explore More
The scopes, colour tools and formats are on the Scope page. What the package contains is on the Download page.