feat(preview): burn the production name into the slate and the overlay
Deploy / deploy (push) Successful in 5m57s
Deploy / deploy (push) Successful in 5m57s
The preview manifest now carries the show name, taken from the project's
name rather than its code — a slate is read by a human, so "Ungovernable"
beats "UNG_S1".
Both the worker's headless build and the panel's own preview set it, so a
farm-generated preview and an artist-built one still match. The panel
writes it whenever it touches an overlay, not only when building a
preview, so existing comps pick it up on the next Add Overlay.
The slate's other properties are title case ("Date", "Scene") while the
overlay's are upper ("DATE", "SHOT NAME"), so both spellings of SHOW are
attempted; a template exposing neither reports its actual property names
as a build warning rather than failing silently, matching how the VFX
Scope and Submission Note fields already behave.
Panel 2.2.0, worker 1.2.0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -266,6 +266,27 @@
|
||||
}
|
||||
}
|
||||
|
||||
// The production name, burned into both the slate and the overlay. The
|
||||
// slate's other fields are title case ("Date", "Scene") while the overlay's
|
||||
// are upper ("DATE", "SHOT NAME"), so both spellings are attempted rather
|
||||
// than assuming which template uses which — and a template that exposes
|
||||
// neither reports its actual property names instead of failing silently.
|
||||
function setShowField(layer, value, label) {
|
||||
var candidates = ["SHOW", "Show"];
|
||||
var i;
|
||||
|
||||
if (value === null || value === undefined || value === "") {
|
||||
return;
|
||||
}
|
||||
for (i = 0; i < candidates.length; i += 1) {
|
||||
if (setEssentialProperty(layer, candidates[i], value)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
warn(label + ": no Essential Property named " + candidates.join(" or ") +
|
||||
". Available: " + listEssentialPropertyNames(layer).join(", "));
|
||||
}
|
||||
|
||||
function setCompStartFrame(comp, frameNumber) {
|
||||
try {
|
||||
comp.displayStartFrame = frameNumber;
|
||||
@@ -437,6 +458,7 @@
|
||||
overlayLayer.enabled = true;
|
||||
setEssentialProperty(overlayLayer, "DATE", ctx.slate.date);
|
||||
setEssentialProperty(overlayLayer, "SHOT NAME", ctx.slate.versionName);
|
||||
setShowField(overlayLayer, ctx.slate.show, "Overlay SHOW");
|
||||
} else {
|
||||
warn("Overlay comp \"" + ctx.overlayComp + "\" not found — rendering without burn-ins");
|
||||
}
|
||||
@@ -471,6 +493,7 @@
|
||||
setEssentialProperty(slateLayer, "Episode", ctx.slate.episode);
|
||||
setEssentialProperty(slateLayer, "Scene", ctx.slate.scene);
|
||||
setEssentialProperty(slateLayer, "Frames", result.frameCount);
|
||||
setShowField(slateLayer, ctx.slate.show, "Slate SHOW");
|
||||
|
||||
setSlateField(slateLayer, ctx.slateScopeProp, ctx.slate.vfxScope, "VFX Scope");
|
||||
// The slate's Notes field carries this submission's note; when the
|
||||
|
||||
Reference in New Issue
Block a user