/mas-3d-games:cinema-4dfrom mas-3d-games
Scripts Cinema 4D scenes with c4dpy and the Maxon API, automates MoGraph/Fields systems, and debugs Redshift GPU renders, AOVs, and headless Commandline farm jobs.
Ships in mas-3d-games. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Maxon Cinema 4D (C4D 2024/2025+) is a motion-design and VFX DCC. Agents should treat scenes as versioned project packages (assets + caches + render settings), MoGraph as procedural contracts (cloners + effectors + fields), and Redshift as a GPU memory budget problem—not “turn samples up.” Automation runs through c4dpy, the classic c4d API, the maxon graph API (Scene Nodes / Neutron), and headless Commandline renders.
┌─────────────────────────────────────────────────────────────┐
│ C4D build → cache → render loop │
│ │
│ Authoring │
│ ├── Classic OM + Scene Nodes / Neutron │
│ ├── MoGraph: Cloner → Effectors → Fields │
│ └── Unified Sim: Pyro / Cloth / Soft / Rigid │
│ │
│ Automation │
│ ├── c4dpy (headless Python 3) │
│ ├── c4d + maxon APIs │
│ └── Commandline.exe farm flags (-render -frame -oimage) │
│ │
│ Redshift │
│ ├── GPU VRAM + Out-of-Core + texture streaming │
│ └── ACEScg OCIO, AOVs / Cryptomatte, .rs proxies │
└─────────────────────────────────────────────────────────────┘
Version pins: document Cinema 4D year + build and Redshift build in every pipeline README. Plugin IDs and Python APIs drift across major releases—never assume R20 snippets still compile.
Use when
Do not use when
@houdini.@zbrush then bring mesh into C4D.c4dpy / Commandline version at job start.documents, BaseObject, tags) over GUI-only ops in headless scripts; call c4d.EventAdd() only when a GUI session needs refresh.KillDocument(doc) after headless work to avoid batch memory leaks..rs), texture streaming / TX, Out-of-Core—before raising samples.batch_export_usd.py — run via c4dpy:
"""Cinema 4D headless USD export.
Usage: c4dpy batch_export_usd.py <scene.c4d> <output_dir>
"""
from __future__ import annotations
import os
import sys
import c4d
from c4d import documents
USD_EXPORT_ID = 1040540 # verify against installed C4D build
def export_usd(scene_path: str, output_dir: str) -> None:
if not os.path.isfile(scene_path):
print(f"C4D_PIPELINE_FAIL missing scene: {scene_path}", file=sys.stderr)
sys.exit(1)
doc = documents.LoadDocument(
scene_path,
c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS,
)
if doc is None:
print(f"C4D_PIPELINE_FAIL LoadDocument: {scene_path}", file=sys.stderr)
sys.exit(1)
documents.SetActiveDocument(doc)
os.makedirs(output_dir, exist_ok=True)
stem = os.path.splitext(os.path.basename(scene_path))[0]
usd_path = os.path.join(output_dir, f"{stem}.usd")
ok = documents.SaveDocument(
doc,
usd_path,
c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST,
USD_EXPORT_ID,
)
documents.KillDocument(doc)
if not ok:
print(f"C4D_PIPELINE_FAIL USD export: {usd_path}", file=sys.stderr)
sys.exit(1)
print(f"exported {usd_path}")
if __name__ == "__main__":
if len(sys.argv) < 3:
print("Usage: c4dpy batch_export_usd.py <scene.c4d> <output_dir>", file=sys.stderr)
sys.exit(2)
export_usd(sys.argv[1], sys.argv[2])
Validation / farm render loop:
# Version gate
"C:\Program Files\Maxon Cinema 4D 2025\c4dpy.exe" -c "import c4d; print(c4d.GetC4DVersion())"
# Asset export
"C:\Program Files\Maxon Cinema 4D 2025\c4dpy.exe" pipeline\batch_export_usd.py scene.c4d out\
# Headless Redshift stills (paths are install-local — do not invent farm credentials)
"C:\Program Files\Maxon Cinema 4D 2025\Commandline.exe" -render "D:\Jobs\scene.c4d" -frame 1 1 -oimage "D:\Renders\beauty_####"
| Signature | Likely cause | Fix path |
|---|---|---|
CUDA_ERROR_OUT_OF_MEMORY / Redshift abort | Textures + tessellation exceed VRAM | Out-of-Core + texture streaming; convert heavy meshes to .rs proxies; lower subdivision |
| Alembic/FBX materials missing | Face sets / selection names do not match | Match Polygon Selection Tags to Alembic part names; reassign RS materials to tags |
| MoGraph dynamics explode frame 0 | Overlapping cloners / bad collision shape | Multi-Box or Convex Hull; raise collision margin + Project Dynamics steps |
AttributeError on c4d.* | Deprecated R20 API vs 2024/2025 | Prefer current docs; use maxon for graph/node work |
| Farm black frames | Missing camera, lights, or texture paths | Assert active camera; Project Asset Inspector; relative paths + collect assets |
| OCIO / ACES mismatch local vs farm | Different OCIO config | Pin OCIO path in env on all workers; compare EXR linear vs preview LUT |
| Commandline ignores frame/output | Wrong flag order / wrong binary | Use Commandline.exe (not GUI); verify -render -frame -oimage |
-camera / take flags on the farm.plugins.FindPlugin when uncertain.@houdini — heavy FX, Solaris/Karma, PDG wedging@blender — open-source bpy / Cycles automation@zbrush — high-res organic sculpt → retopo into C4D@substance-painter — PBR texturing after mesh export@unreal-engine / @unity — real-time destinations after USD/FBXMANDATORY: Pin C4D and Redshift builds. In headless scripts always
KillDocumentand exit non-zero on failure. Fix Redshift VRAM (proxies, streaming, Out-of-Core) before cranking samples. Match OCIO/ACES on every farm worker. Never invent licenses, registry secrets, or credentialed paths.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub alivirgo/major-ai-skills --plugin mas-3d-games8 skills in this plugin
/blenderAutomate Blender scenes with the bpy Python API, build Geometry Nodes workflows, configure Cycles or EEVEE renders, and troubleshoot headless batch jobs./godotBuild Godot 4 scenes and GDScript workflows, inspect physics behavior, and configure headless project exports./houdiniAutomate Houdini with VEX and hou/hython, cook PDG/TOPs graphs, tune Vellum/FLIP/Pyro solvers, and debug Solaris/Karma XPU renders agents routinely miss.Other plugins' skills for the same job
/substance-painterAutomate Substance 3D Painter texturing with the Python API, bake mesh maps safely, pack PBR exports for Unreal/Unity, and debug UDIM, TDR, and color-space failures agents routinely miss.2 plugins in one repository ship this exact skill · first indexed Oct 25, 2026