19 lines
897 B
JavaScript
19 lines
897 B
JavaScript
// E16: ground plane and ground lines (3 models, 6 parts) on top of E15.
|
|
import fs from "node:fs";
|
|
import path from "node:path";
|
|
import { createSceneRunner } from "../../../carrier-course/lib/scene.mjs";
|
|
import { buildEpisodeModels } from "../../lib/model-build.mjs";
|
|
|
|
export async function run({ page, rec, script, stillsDir, rawDir, webRoot }) {
|
|
const scene = createSceneRunner({ rec, page, script });
|
|
const shot = name => rec.shot(stillsDir, name);
|
|
const log = [];
|
|
const logStep = entry => {
|
|
log.push({ at: new Date().toISOString(), ...entry });
|
|
fs.writeFileSync(path.join(rawDir, "live-log.json"), `${JSON.stringify(log, null, 2)}\n`);
|
|
};
|
|
await scene("S00", async () => { await shot("S00-title"); });
|
|
await buildEpisodeModels({ page, rec, webRoot, rawDir, stillsDir, scene, shot, logStep, log,
|
|
episodeId: "E16", modelNames: ["GroundPlane", "Plane", "Plane001"] });
|
|
}
|