fix: cinematic render arg order — match turntable positional layout

The service was sending (glb, frames_dir, width, height, engine, samples...)
but the script expected turntable order (glb, frames_dir, frame_count, degrees,
width, height, engine, samples...). Fixed by adding frame_count and degrees
placeholders to match the expected positional layout.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-15 21:32:34 +01:00
parent f22b963be9
commit e26d76154b
+19 -14
View File
@@ -612,20 +612,25 @@ def render_cinematic_to_file(
"--background", "--background",
"--python", str(script_path), "--python", str(script_path),
"--", "--",
glb_arg, glb_arg, # [0] glb_path
str(frames_dir), str(frames_dir), # [1] frames_dir
str(width), str(height), str(frame_count), # [2] frame_count (480)
engine, str(samples), "0", # [3] degrees (unused, compat)
json.dumps(part_colors or {}), str(width), str(height), # [4] width, [5] height
template_path or "", engine, str(samples), # [6] engine, [7] samples
target_collection, json.dumps(part_colors or {}), # [8] part_colors
material_library_path or "", template_path or "", # [9] template_path
json.dumps(material_map) if material_map else "{}", target_collection, # [10] target_collection
json.dumps(part_names_ordered) if part_names_ordered else "[]", material_library_path or "", # [11] material_library
"1" if lighting_only else "0", json.dumps(material_map) if material_map else "{}", # [12] material_map
cycles_device, json.dumps(part_names_ordered) if part_names_ordered else "[]", # [13] part_names
"1" if shadow_catcher else "0", "1" if lighting_only else "0", # [14] lighting_only
str(rotation_x), str(rotation_y), str(rotation_z), cycles_device, # [15] cycles_device
"1" if shadow_catcher else "0", # [16] shadow_catcher
str(rotation_x), str(rotation_y), str(rotation_z), # [17-19] rotation
"world_z", # [20] turntable_axis (unused)
"", # [21] bg_color (unused)
"1" if transparent_bg else "0", # [22] transparent_bg
] ]
if use_usd: if use_usd:
cmd += ["--usd-path", str(usd_path)] cmd += ["--usd-path", str(usd_path)]