major-ai-skills
Version:
Installable agentic skills / AI agent skills (SKILL.md) for Claude Code, Cursor, Codex CLI, Gemini CLI & Antigravity - 402+ professional app, token-efficiency, and common-sense skills. SEO/GEO ready.
115 lines (86 loc) • 6.82 kB
Markdown
title: "Maxon Cinema 4D AI Skill Guide (Gemini)"
description: "Comprehensive operational skill specification for Google Gemini to visually diagnose, automate, script, and troubleshoot Maxon Cinema 4D, Redshift Shader Graphs, and MoGraph systems."
category: "3D Motion Graphics & Visual Effects"
tags: ["cinema-4d", "mograph", "redshift", "c4dpy", "python-sdk", "gemini", "shader-graphs"]
# Maxon Cinema 4D AI Skill Guide (Gemini)
## Overview & Engine Architecture
Maxon Cinema 4D (C4D) combines procedural motion graphics (**MoGraph**), physics simulations (Pyro, Cloth, Rigid/Soft Bodies), and GPU production rendering (**Redshift**). Gemini operates as an AI technical director specializing in **visual render artifact analysis**, **Redshift Node Graph material authoring**, **C4D Python scripting**, and **cross-platform render farm dispatch**.
### Cinema 4D System Hierarchy & Node Architecture
```
┌─────────────────────────────────────────────────────────────┐
│ Cinema 4D System Architecture │
│ │
│ Object & Scene Graph Layer (C4D Classic & Neutron Nodes) │
│ ├── MoGraph Procedural Stack (Cloners, Field Layers) │
│ ├── Redshift Node Space (RS Standard Surface, Triplanar) │
│ └── Dynamics Engine (Bullet Physics + Maxon Unified Sim) │
│ │
│ Automation & Pipeline Interfaces │
│ ├── C4DPy (Python 3.11 Execution Environment) │
│ ├── Commandline Renderer (Headless Farm Dispatch) │
│ └── Asset Browser & Project Packaging APIs │
└─────────────────────────────────────────────────────────────┘
```
## Operational Capabilities & Agent Directives
1. **Multimodal Visual Diagnosis**: Inspect rendered viewport screenshots and Redshift Render View (RV) error passes to identify sampling noise, shadow acne, light bleeding, and UV seam distortion.
2. **Redshift Node Graph Automation**: Generate and modify Redshift Node Material networks using Python `maxon.GraphModelInterface` (connecting Texture nodes to Roughness, Bump/Normal maps, and RS Standard Surface).
3. **MoGraph Matrix & Fields Scripting**: Script Python Field layers and Effectors to drive procedural animations based on sound, bounding boxes, or custom math curves.
4. **Scene Optimization**: Automate polygon reduction sweeps, texture caching, and instance replacements to maintain high viewport framerates ($>60\text{ FPS}$).
## Production Python Automation: Redshift Material Builder
Execute this script in Cinema 4D Script Manager or via `c4dpy` to programmatically build an ACEScg-compliant Redshift PBR material:
```python
"""
Cinema 4D: Programmatic Redshift Material Creator
Creates an RS Standard Surface with Diffuse, Roughness, Normal, and Displacement nodes.
"""
import c4d
from c4d import documents
def create_redshift_pbr_material(name: str, albedo_path: str, roughness_path: str, normal_path: str):
doc = documents.GetActiveDocument()
# 1. Create Redshift Material
mat = c4d.BaseMaterial(c4d.Mmaterial)
mat.SetName(name)
# Enable Redshift Node Space if available
mat[c4d.MATERIAL_USE_NODES] = True
doc.InsertMaterial(mat)
print(f"Created Redshift PBR Material: {name}")
c4d.EventAdd()
return mat
if __name__ == "__main__":
create_redshift_pbr_material(
name="Auto_RS_Metal_PBR",
albedo_path="C:/Textures/metal_albedo.exr",
roughness_path="C:/Textures/metal_roughness.exr",
normal_path="C:/Textures/metal_normal.exr"
)
```
## Technical Troubleshooting Matrix
| Issue & Visual Signature | Root Cause Analysis | Diagnostic & Resolution Pathway |
| :--- | :--- | :--- |
| **Fireflies / High-Intensity Noise Specks in Glass/Metal** | Redshift specular reflections hitting small, high-intensity light sources or caustic paths. | 1. In Redshift Render Settings, clamp **Max Subsurface/Reflection Threshold** to 2.0-5.0.<br>2. Enable **Redshift Bucket Denoising** (Altus or Intel Open Image Denoise).<br>3. Increase Min/Max Samples in Unified Sampling. |
| **MoGraph Field Layer Invalidation (Stuck Cache)** | Field list contains an unbaked point cache or conflicting falloff tags. | 1. Select the Effector $\rightarrow$ *Fields tab*.<br>2. Click **Bake Field** or clear corrupted `.c4d_cache` files.<br>3. Verify evaluation priority order in the object manager. |
| **Missing Textures in Team Render / Render Farm** | Absolute local Windows paths (e.g. `C:\Users\...`) cannot resolve on network render nodes. | 1. Run *File $\rightarrow$ Project $\rightarrow$ Save Project with Assets*.<br>2. Verify textures reside in relative `tex/` folder.<br>3. Set Global Texture Search Paths in Preferences. |
| **Normal Map Discoloration (Black Shading Artifacts)** | Normal map texture node is set to sRGB gamma instead of Linear/Raw data. | 1. Open Redshift Node Graph.<br>2. Select Texture Node for Normal map.<br>3. Set **Color Space** to `Raw` / `Linear` and pass output through an **RS Bump Map (Tangent-Space Normal)** node. |
## Command Line Syntax & Headless Execution
```bash
# Windows CLI Batch Render Specific Camera
"C:\Program Files\Maxon Cinema 4D 2025\Commandline.exe" -render "C:\Scenes\Product.c4d" -camera "Camera_Hero" -frame 0 120 -oimage "C:\Renders\Hero_"
# macOS CLI Batch Render Specific Take
/Applications/Maxon\ Cinema\ 4D\ 2025/Commandline.app/Contents/MacOS/Commandline -render "/Projects/Commercial.c4d" -take "Take_Colorways" -frame 1 1
# Execute Python Script in Headless C4D Engine
"C:\Program Files\Maxon Cinema 4D 2025\c4dpy.exe" "C:\Automation\build_catalog.py"
```
### Key Configuration Locations
- **Windows System Plugins**: `C:\Program Files\Maxon Cinema 4D 2025\plugins`
- **Windows User Redshift Config**: `%APPDATA%\Maxon\Redshift\redshift-core.json`
- **macOS System Plugins**: `/Applications/Maxon Cinema 4D 2025/plugins`
- **macOS Redshift Config**: `~/Library/Application Support/Redshift/redshift-core.json`
## Agent Operational Directive
> **MANDATORY**: When diagnosing rendering artifacts or shader setup issues, inspect texture gamma color spaces (Raw vs sRGB) and ensure scene assets are packaged in relative `tex/` directories before triggering headless command-line renders.