Skip to content
Back to skills

Cinema4d Redshift

ASecurity

Redshift in Cinema 4D through Python — node materials via the maxon graph API (node/port IDs), an emission-only lit-gold recipe, RS Object tag particle settings, splines as RS curves, RS Camera ids, image sequences on the Texture node, verifiable test renders, rendering a take with Redshift from a script (GUI threaded render, take render settings, out-of-memory code), and verified dead ends. Use when shading or test-rendering with Redshift in C4D. Load with cinema4d-mcp.

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 12, 2026
ai-agentspythonrustgoshellbashnodegitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add dima-rdnv/claude-skills --skill cinema4d-redshift --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cinema4d Redshift?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cinema4d Redshift
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dima-rdnv-cinema4d-redshift/badge)](https://www.skillsdirectory.com/skills/dima-rdnv-cinema4d-redshift)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cinema4d-redshift
description: Redshift in Cinema 4D through Python — node materials via the maxon graph API (node/port IDs), an emission-only lit-gold recipe, RS Object tag particle settings, splines as RS curves, RS Camera ids, image sequences on the Texture node, verifiable test renders, rendering a take with Redshift from a script (GUI threaded render, take render settings, out-of-memory code), and verified dead ends. Use when shading or test-rendering with Redshift in C4D. Load with cinema4d-mcp.
---

# Redshift in Cinema 4D (verified, C4D 2026.3–2026.4)

## Node materials through the maxon API
- Every material is type 5703; the Redshift graph lives in a node space:
  `RS = maxon.Id("com.redshift3d.redshift4c4d.class.nodespace")`,
  `graph = mat.GetNodeMaterialReference().GetGraph(RS)` (`HasSpace(RS)` to test).
  The MCP tool `inspect_redshift_materials` skips these as "not_redshift_like" — use the API.
- New material: `mat = c4d.BaseMaterial(c4d.Mmaterial); doc.InsertMaterial(mat);
  graph = mat.GetNodeMaterialReference().CreateDefaultGraph(RS)` → RS Standard + Output.
- List nodes: `graph.GetViewRoot().GetChildren(lst, maxon.NODE_KIND.NODE)`; node type:
  `n.GetValue("net.maxon.node.attribute.assetid")`. List ports:
  `n.GetInputs().GetChildren(lst, maxon.NODE_KIND.PORT_MASK)`.
- Edit inside `with graph.BeginTransaction() as t: ... t.Commit()`:
  `graph.AddChild(maxon.Id(), maxon.Id(node_type))`, `n.GetInputs().FindChild(port_id)`,
  `port.SetPortValue(maxon.String(...) / maxon.Float(...) / maxon.ColorA(...))`, `out.Connect(inport)`,
  `n.Remove()`. Assign: `tag = obj.MakeTag(c4d.Ttexture); tag[c4d.TEXTURETAG_MATERIAL] = mat`.
- Find node types: `maxon.AssetInterface.GetUserPrefsRepository().FindAssets(
  maxon.AssetTypes.NodeTemplate(), maxon.Id(), maxon.Id(), maxon.ASSET_FIND_MODE.LATEST)` and filter
  ids for "redshift" (161 templates). Build a node in a throwaway doc's material to list its ports.
- Value types that worked (2026.1): colour ports `maxon.Color(r, g, b)` (linear), vector ports
  `maxon.Vector(x, y, z)`, scalars `maxon.Float(v)`.
- Read wiring: `conns = []; port.GetConnections(maxon.PORT_DIR.INPUT, conns)` → `conns[i][0]` is
  the source port (`.GetAncestor(maxon.NODE_KIND.NODE)` for its node). `maxon.PORT_CONNECTION_MODE`
  doesn't exist. Identify nodes by wiring, not by list order, before editing duplicates.
- **One slider for a look** (verified 2027.0): `rsscalarconstant` (input `val`, output `out`) as the control,
  one `rsmathrange` per driven setting (input ← the control, old 0..1, new = the setting at 0 and at 1), its
  `out` connected into the setting's port. Connections into another Range's `new_min` / `new_max` and into
  `rsvectormaker.y` are honoured by the render. Name a node with `node.SetValue("net.maxon.node.base.name",
  maxon.String("…"))` (read it back with `GetValue`), so the user finds the control and a script can find and
  remove its own nodes. Replace a wire: `in_port.RemoveConnections(maxon.PORT_DIR.INPUT, maxon.Wires.All())`,
  then `Connect`. Pick the two ends so the middle equals the values the material already has, and assert
  that before installing, so adding the control does not change the picture.
- A re-wired graph that is equal only to float precision is **not pixel-identical**: the sampling noise
  reshuffles (single pixels up to 0.2 apart in a noisy frame). Judge equality by the mean signed difference
  (5e-6 here) and by 16×16 block averages (max 0.005, against 0.25 for the slider's own range).

## IDs (prefix `com.redshift3d.redshift4c4d.nodes.core.`)
- `standardmaterial`: `.base_color`, `.base_color_weight`, `.emission_color`, `.emission_weight`,
  `.refl_weight`, `.refl_roughness`, `.overallaffectsemission`. Output: `com.redshift3d.redshift4c4d.node.output`.
- `vertexattributelookup`: `.attribute`, `.defaultcolor` (magenta), `.defaultscalar`, `.outcolor`, `.outscalar`.
- `particleattributelookup`: `.attribute`, `.outcolor`, `.outscalar`.
- `rsuserdatacolor`: `.attribute`, `.default`, `.out` (also `rsuserdatascalar/vector/integer/string`).
- `state`: outputs `.normal`, `.normal_nobump`, `.normal_geom`, `.raydirection`, `.rayposition`,
  `.uvwcoord`, `.tangent`, `.bitangent` (world space).
- `rsmathdotvector`: `.input1`, `.input2`, `.out` · `rsmathrange`: `.input`, `.old_min`, `.old_max`,
  `.new_min`, `.new_max`, `.clamp`, `.out` · `rsmathsaturate`: `.input`, `.out` · `rsmathpow`:
  `.base`, `.exponent`, `.out` · `rsmathmul`: `.input1`, `.input2`, `.out`.
- `rscolormix`: `.input1`, `.input2`, `.mixamount`, `.outcolor` · `rscolorconstant`: `.color`,
  `.outcolor` · `fresnel`: `.facing_color`, `.perp_color`, `.ior`, `.outcolor` · `ambientocclusion`:
  `.bright`, `.dark`, `.spread`, `.maxdistance`, `.out` · `rsramp`: `.input`, `.ramp` (gradient —
  setting it from Python untested), `.outcolor` · `rscolorlayer`: `.base_color`, `.layerN_color/_mask/_blend_mode`.
- Others seen: `texturesampler`, `triplanar`, `bumpmap`, `bumpblender`, `roundcorners`,
  `rsscalarramp`, `incandescent`, `curvature`, `rsvectormaker`, `c4dhairattribute`, `volume*attribute`.

## Recipe: emission-only "lit" gold without lights (verified look)
For stylised elements that must read without a light rig: RS Standard with base colour black,
refl_weight 0, emission weight ≈1.2, emission colour =
`colormix(dark, gold, range(dot(state.normal, L), -1..1 → 0..1))` → second `colormix(that,
highlight, pow(saturate(dot(state.normal, H)), 18))`, with L = normalize(-0.55, 0.65, -0.55) (upper
left, towards a camera looking down +Z) and H = normalize(L + (0, 0, -1)). Gold that read well:
dark (0.30, 0.13, 0.02), gold (1.0, 0.72, 0.28), highlight (1.0, 0.93, 0.70) (linear).
Particle dust: emission-only (1.0, 0.80, 0.46) × 1.1 on a dark green comp reads as pale gold.

## Recipes: atmosphere rim and a screen-space gradient sky (verified look, C4D 2026.4)
- **Rim** on a shell sphere just above the globe: `dot(state.normal, state.raydirection)` →
  `rsmathrange` (−1…0 → 0…1) → `rsmathsaturate` → `rsmathpow` (exp 5–7) → `rscolormix(black, rim)`
  → `emission_color`; the same mask → `rscolormix(black, white)` → `opacity_color`. Base/refl weight 0.
- **Gradient sky**: a Plane (`PRIM_AXIS` 5 = −Z, UVW projection) parented to the camera at local z,
  width = z · aperture / focal (+1 %). `dot(state.uvwcoord, (0,1,0))` = v, and **v = 1 at the top
  of frame**. One segment `range(v) → saturate → rsmathmul(t, t) → colormix(top, horizon)` is smooth;
  two linear segments joined by colormix showed a visible band at the join.
- `rsmathrange` accepts old_min > old_max (inverted mapping) — verified.
- Emission hex values rendered ~2–2.5 stops darker through the scene's view transform: measure the
  render and raise emission weight (3–6 here) rather than trusting the hex.
- Graph edits are undoable once the **material** is registered (verified 2027.0 on a document copy):
  `doc.StartUndo(); doc.AddUndo(c4d.UNDOTYPE_CHANGE, mat)`, the transaction, `doc.EndUndo()`; `DoUndo()` gave
  back the original graph, node for node. Through the adapter, `add_undo_change(mat)` before the transaction
  ran without its "not undoable" warning (Ctrl-Z in the GUI not tried). Without registering the material the
  edit is not undoable: then give the script a `remove()` that restores the wiring.
- (cause unknown) an `rsmathpow` inserted between a saturate and a colormix `mixamount` rendered 0;
  a `rsmathmul(t, t)` in the same spot worked.
- Many RS point lights inside cloned rigs (66 here) made a 960×540 preview crawl (~15 % after 80 s);
  with them off it took 8 s.
- **Splines as Redshift curves** (verified 2026.4, many hundreds of lines in ~6 s at 1920 final):
  RS Object tag on the spline: `[9000]` Mode (0 Off, 1 Hair Strands, 32 Boxes, 33 Cylinders,
  34 Capsules, 35 Cones, 36 Strips), `[9001]` Thickness (cm), `[9002]` Scale = `c4d.SplineData`
  thickness along each curve (a new SplineData already holds 2 knots: delete them before
  `InsertKnot(0, 1)`, `InsertKnot(1, 0)` for a taper). Multi-segment splines work (one curve per
  segment); tags put on splines built inside a Python Generator's cache are honoured. Dots = 2-point
  segments in Capsules mode. Camera-only look: `[2999]` Override on, 2001–2013 off.
- Sub-pixel curves look like grain in `render_preview_image(quality="preview")` (denoised); judge
  them with `quality="final"`.
- **RS Camera object** (type 1057516, not `IsInstanceOf(c4d.Ocamera)`): `[500]` Focal Length (mm),
  `[7002]` Sensor Size (mm, Vector w/h), `[7005]` Fit (0 Fill-Crop, 1 Horizontal, 2 Vertical,
  3 Overscan), `[7022]` Zoom (focal × zoom), `[7012]` Shift. Looks down +Z like a C4D camera; a
  pinhole projection with focal and the horizontal aperture (sensor.x for Fit Horizontal) matched
  the render to 1 px. Replace a standard camera: copy Mg, focal, aperture → `[500]`, `[7002]`,
  then set it on the BaseDraw and the Main take.
- Copying a scene's camera rig for a new shot (verified 8 Nov 2026): a **Protection tag (5629)** on the camera pins its
  position — `SetRelPos` x/y were back at 0 after evaluation (the copy looked at the wrong place); remove it on the copy. Also
  clear `[1130]` focus object and `[8002]` bokeh when the new framing is much longer (f/4 at 750–1050 mm blurred everything);
  the focus-distance track needs the DescID from `GetDescription` (a hand-built `DescLevel(1010)` CTrack failed).
- **Don't clone a far overview camera for eye-level shots** (verified C4D 2027.0, Commandline, 16 Nov 2026): clones of an
  overview RS camera (~110 m away, zoom `[7022]` 0.2) rendered everything nearer than ~5 m as missing — floor gone (pure
  0,0,0 rows), near walls cut open — although Near/Far Clip `[1123]/[1129]` read off and the RS render settings had no
  clipping. A fresh `c4d.BaseObject(1057516)` with the same Mg and `[500]` rendered correctly. Build shot cameras fresh, and
  check a clone's `[7022]` zoom (0.2 turned 18 mm into an effective 3.6 mm).
- **Hair-thin lines (~1 px)**: 1 px at distance z is z · aperture / (focal · width_px). Sweeps with a
  0.018–0.02 cm square profile at 250–490 cm (100 mm, 36 mm gate, 1920 wide) rendered as crisp
  ~1 px lines; emission-only weight 6–8 keeps them bright after anti-aliasing (preview quality).
- Texture-driven line opacity (`texturesampler` → `rsscalarramp`): lowering the ramp's `old_max`
  (1 → 0.35–0.45) keeps only the dark line cores of a black-on-white grid texture → thinner lines.
- Check texture paths before judging a material: a missing `relative:///tex/...` texture made an
  opacity-masked grid render as a solid sphere. `c4d.GenerateTexturePath(doc_path, file, "")`
  returns None when unresolved.
- (unverified fix) RS Object tag 1999 = 1 + 2002 "Casts Shadows" = 0 did not stop a small emissive
  sphere's shadow in a preview; shrinking the object did.

## Liquids and glass (verified look, C4D 2027 + RS, Nov 2026)
- In the Standard Material, transmission takes its energy from the base (diffuse) layer: at
  `refr_weight` 1.0 the Base Color does nothing. Partial transmission (0.3–0.8) over a coloured base
  left 20–70 % of each droplet as a painted diffuse surface → it read as plastic. Clear liquid:
  `refr_weight` 1, tint by absorption (`refr_color` reached at `refr_depth`, in scene units — set the
  depth near the object size so small drops stay pale and big ones get the colour), IOR ~1.47.
- **Something inside a tinted liquid** (a white body with red dots inside an amber droplet) comes out in the liquid's tint:
  white read gold. Give it emission colour = target / `refr_color` per channel, normalised to max 1, emission weight ×
  that max, `base_color_weight` 0 → it arrives at the camera close to the target colour (verified 2027.0: white + red
  through `refr_color` (1, 0.74, 0.34)). Lit diffuse white alone stays yellow whatever its brightness.
- A still rendered from an animation's render setting keeps its **motion blur** (spheres streaked along the particle
  velocity): switch off `[60010]` (Basic) / `[40010]` (Advanced) on the Redshift videopost of the still's setting.
- Transparent passes composited over a bright background: a uniform white dome makes clear droplets
  vanish (nothing to refract or reflect but white); a studio HDRI dome with camera contribution 0
  (`dome[10042] = 0`) gives the highlights and dark refracted edges that make them read as liquid.
- Cameras: use the `RS Camera` object (1057516). It reads the C4D focal / aperture
  (`CAMERA_FOCUS`, `CAMERAOBJECT_APERTURE`); its own ids include bokeh `8002`, f-number `1201` (max
  256), focus distance `1010`. **It has no lens shift**: Film Offset is not in its description, and its
  Offset X/Y `13006/13007` sit in the *Background* group (background-image offset).
- **Panorama / projection textures from an eye point (verified C4D 2027.0, Nov 2026).**
  - **Don't rely on the RS Spherical lens.** `[1001]` lists 0 Perspective, 14 Spherical, 15 Fisheye, 16 Cylindrical, 17 Stereo Spherical, 1 Orthographic, 12 Isometric, 13 Dimetric.
    - With 14, a Python-built RS Camera rendered one flat colour in `Commandline.exe` (a tiny patch straight ahead).
    - Angle of view `[7009]`/`[7010]` = 2π/π was already set and clamps at 2π; `[7015]` = (360, 180) changed nothing.
    - The same camera with `[1001]` = 0 rendered the scene fine.
  - **Render a cube map instead:** six RS cameras at the eye, `[500]` = 18, `[7002]` = (36, 36), `[7005]` = 1, square resolution = 90°.
    - Matrix `c4d.Matrix(eye, cross(up, fwd), up, fwd)`, where cross is the plain math cross product (identity check: Y × Z = X).
    - Sample a face at u = 0.5 + 0.5·(d·v1)/(d·v3), v = 0.5 − 0.5·(d·v2)/(d·v3). Stitched seamlessly.
  - **For an LED wall,** bake the projection straight into the wall's own UV layout:
    1. For each texel, compute its 3D point.
    2. Take the direction from the eye.
    3. Sample the cube map.

    This needs no re-mesh, and the projection is exact at any mesh density.
  - **Commandline ignores a camera set only on the Main take** of a script-built document. It rendered the default view, which looked empty. Give each camera its own child take and pass `-take`.
  - **The PNG had alpha 1 everywhere,** even with nothing behind. Either set the render setting's alpha save, or turn the dome off (generator flag) and key the pure-black sky.
  - **A large RS area light** (e.g. 25 × 8 m floods) with Normalize `[11014]` on spreads its power over the area and lit almost nothing. Turn normalize off and set the exposure.
- Split screen that must zoom "as one picture" (both halves dolly towards the common screen centre):
  per panel, move the camera sideways by `d0 · tan(a)` and turn it inward by `a = atan(0.5 · aperture /
  focal)` (half the panel's FOV), then dolly along world Z. The panel's centre frames the subject at
  distance d0, and the Z motion converges on the panel's inner edge. At long lenses the turn (1.4° at
  750 mm, 6.8° at 150 mm) shows no visible keystone.

## Thin film, iridescence and matching a reference still (verified C4D 2027.0)
- Thin-film hue against thickness and film IOR (about 3° of hue per nm at IOR 2.0), why a low base IOR turns
  the tint gold, camera-dependent fake diffraction, and the clone → Commandline loop for look-dev on an open
  scene: `references/thin-film-look-dev.md`.

## Textures missing after a scene moves between Mac and Windows (verified C4D 2027.0)
- Absolute Mac URLs in `texturesampler` paths show as `./Users/…` on Windows and the Project Asset Inspector's
  relink does not stick: set `relative:///<sub-folder>/<file>` on the path ports instead, and read the proof in
  the Redshift log: `references/texture-paths-across-machines.md`.

## Script-built scenes: render settings and bevels (verified C4D 2027.0)
- **A cloned Redshift videopost hung Commandline** ("Busy:Render Waiting until idle"): clone child render
  settings first (`COPYFLAGS_NO_HIERARCHY`), then give each its own videopost with
  `redshift.FindAddVideoPost(rd, redshift.VPrsrenderer)`. Details and how to bisect: `references/script-built-scenes.md`.
- **Bevels belong in the material** (user preference): `roundcorners` `.out` → `standardmaterial.bump_input`,
  radius in scene units; mesh edges stay hard. **It only shows in bucket mode** (progressive and the
  progressive IPR ignore it). Same reference.

## Fast render settings — the default to start from (user's practice; ids verified C4D 2027.0)
Most shots need far less than Redshift's defaults; lower settings render faster **and** cleaner:
- **GI: brute force, 2 bounces.** **Trace depths: lower** (defaults combined 6 / reflection 4 /
  refraction 6 / transparency 16 / volume 1 — e.g. 4 / 3 / 3 / 6 / 1; raise refraction only for glass
  and liquids). **Unified sampling: raise the adaptive threshold** (default 0.01; 0.03 used for
  previews). **Denoise: OIDN on.**
- Ids on the Redshift videopost (`BaseVideoPost(1036219)`), **Advanced** mode (`[60000] = 1`):
  GI on `7005`, primary engine `7001` (4 Brute Force, 3 Irradiance Cache), secondary `7002`
  (4 Brute Force, 2 IPC), GI trace depth `7006`; trace depths combined `5003`, reflection `5001`,
  refraction `5002`, transparency `5004`, volume `5005`; unified sampling min/max/threshold
  `1101`/`1102`/`1103`; denoise enabled `2006`, engine `2007` (4 OIDN, 3 OptiX, 1/2 Altus).
- **A Python-created videopost starts in Basic mode** (`[60000] = 0`), which has its own controls:
  bucket quality `60001`, threshold `60002`, denoise `60008` + engine `60009` (4 OIDN), GI `60015`,
  depths combined `60003` / reflection `60005` / refraction `60006` / transparency `60004`
  (`600xx` live-mode copies exist too). Set `[60000] = 1` before writing the classic ids.
- `7006` (GI depth) and `7003` (secondary bounces) are linked: secondary = depth − 1. Set only `7006`
  (= 2 for two bounces); writing `7003 = 2` afterwards pushed `7006` back to 3.
- **Progressive mode ignored the camera's Film Offset** (verified 2027.0, Commandline renders): with
  `[21151] = 1` a lens-shifted standard camera rendered as if unshifted, and the PNG alpha was 1
  everywhere. The same take in bucket mode (`[21151] = 0`) framed correctly with a real alpha. Use
  bucket mode for product-matched (lens-shift) cameras and whenever the alpha matters.

## Lights, textures and render speed (verified C4D 2027.0 + RS, Windows, Nov 2026)
- Product shots (HDRI dome reflections + one key, dome texture ids, non-normalised area lights): `references/product-shot-lighting.md`.
- Iridescence and night FX: data textures in raw colourspace, thin film over a dielectric base, a fake view-angle
  diffraction rainbow, macro DOF at inflated scene scales (RS Camera focal/sensor caps), mesh lights, spot ids,
  RS Environment fog ids, camera bloom/flare/streak ids: `references/thin-film-diffraction-fog.md`.
- **Native C4D lights rendered black** in a Commandline Redshift render (only emissive materials
  showed). Use RS Light objects (1036751): `[10000]` type (0 Infinite, 1 Point, 2 Spot, 3 Area,
  4 Dome, 5 IES, 6 Portal, 7 Sun), area `[11004]` intensity, `[11022]` exposure, `[11005]` units,
  `[11016]/[11017]` size, `[11014]` normalize; dome `[12024]` intensity; `[10042]` camera visibility.
  Area lights shine along their +Z (aim like a C4D light). 3 area lights (intensity 2–6, 80–200 cm)
  + a dome at 0.25–0.6 (camera 0) lit a product row in cm scale.
- **Mesh light** = RS Light type 3 (Area), `[11010]` Area Shape 4 (Mesh), `[11011]` the mesh object.
  **Never hide that mesh with C4D render visibility off**: Redshift does not export it, logs `Mesh Object:
  '…' not found` and `Could not update light mesh` on every update (IPR and final renders), and the light
  emits nothing — a render with the light disabled was pixel-identical. With render visibility on the light
  works and the shape shows to the camera while `[10042]` Camera is 1 (set 0 to keep the light and hide the
  shape; that setting is unverified for mesh lights). Find dead lights by comparing a render with them off.
- **A mesh light replaces its mesh's material.** The mesh renders as the light, in the light's colour and
  intensity: with the light on, recolouring the mesh's emission material from blue to red changed no pixel;
  with it off the material showed (verified 2027.0).
- **The user's rule for anything that glows** (20 Nov 2026: "Can I control them via material? Let's other mcp
  agents also do so if not requested otherwise"): the brightness and colour of an emissive element are set in
  its **material** (emission colour and weight), and nowhere else. So, unless asked otherwise: no rig control,
  tag, generator or script writes a material's emission; no mesh light is put on an emissive object, since it
  takes the look over; the emissive geometry lights the scene through GI. A control that would duplicate the
  material's value is left out rather than synced.
- `texturesampler` exposes only `.outcolor` (no alpha output): drive `opacity_color` from a separate
  grey mask texture. Its `.scale` is a 2D vector and Python 2027 has no `maxon.Vector2d` — tile by
  writing UVs at true size (u = x / tile_width) instead.
- RS videopost `[1101]/[1102]` = min/max samples (a new BaseVideoPost had 4/16).
- **Shared GPU**: the same take rendered in 20 s, then took minutes (2 % after 150 s) while other apps
  (compositor, encoder, DCCs) held 22 of 24 GB VRAM. Check `nvidia-smi` before blaming the scene;
  keep test frames small and few.
  With less free VRAM, Commandline fails fast instead: the log says `Rendering failed: Out of memory`
  (exit 1, after 40–120 s). On Windows (WDDM) `nvidia-smi` lists GPU processes without their memory, so
  look for the likely holder by name too. In one case it was a compositor's command-line render
  (`AfterFX.com`, an aerender job) using 23 of 24.5 GB.
  Don't stop someone else's render. Wait for it in the background with an `until` loop that exits when
  the process is gone or memory drops below a threshold, then render.
- Stopping a background shell loop that runs Commandline (the harness's task stop) left the bash loop
  and `Commandline.exe` running on Windows: find them (`ps -ef | grep <script>`, `tasklist`) and end
  your own processes explicitly, or the next GPU job competes with an orphan.

## RS Object tag (plugin 1036222)
- Particles: override 2999, mode 3000 (0 Disabled, 1 Point, 2 Sphere, 3 Quad instances, 4 Custom
  objects, **5 Optimized Spheres**), 3001 Scale Multiplier (× the particle radius channel).
- Motion blur: 6999 override, 6000 mode (0 Global, 1 Off, 2 Transformation, 3 + Deformation).
- Verified: an Alembic Particle Group renders as Optimized Spheres at its `width` radius.
- Verified: native simulated Particle Groups (Basic Emitter) render the same way (radius × 3001);
  material = texture tag on the group. Mode 0 hides a group that only feeds a Cloner.

## Referencing assets: Redshift proxies (.rs), not XRefs (user preference; verified C4D 2027.0, Windows, Nov 2026)
When a scene should reference reusable models kept in an Assets folder (instead of embedding them), use Redshift
proxies. The user prefers them to XRefs: lighter scenes, materials and textures travel with the `.rs`.
- **Export** (headless c4dpy is fine): scene saver `1038650` "RS Proxy (*.rs)". Options via
  `plug.Message(c4d.MSG_RETRIEVEPRIVATEDATA, d); ex = d["imexporter"]`: `[2000]` Export (0 all), `[2002]` Lights (set 0),
  `[2003]` compress, `[2004]` proxy origin, **`[2005]` Add Proxy to Scene (set 1)**, `[2007]` remove exported objects,
  `[3000]` range (0 current frame). `SaveDocument(doc, "<name>.rs", flags, 1038650)`.
  Asset Browser (`asset:///`) textures are baked next to the `.rs` as `RSC4D-BakedAsset-tex_<hash>~.png`; export each
  category into its own `rs/` subfolder to keep them tidy.
- **Proxy object** `1038649`: let the exporter create it (`[2005] = 1` inserts "RS Proxy <name>" into the exported
  document) and clone that object into the target scene. **Do not write the path yourself**: `[10000]` is a Redshift file
  datatype (1036765); `p[c4d.REDSHIFT_PROXY_FILE, c4d.REDSHIFT_FILE_PATH] = path` "works" (reads back, prints
  `CRITICAL: Stop [ge_container.cpp]`) but the saved scene hung Commandline at "Loading Project" (GPU idle, 9 min). The
  exporter-made proxy rendered in 12 s. Reading the path back: `p[c4d.REDSHIFT_PROXY_FILE, c4d.REDSHIFT_FILE_PATH]`.
- **Viewport preview** (the user wants full geometry, not a box): `[11001]` Preview = 2 (0 Off, 1 Bounding Box, 2 Mesh),
  `[11002]` Preview Percentage 1.0, `[11000]` Show Bounding Box 0. `[12000]` Materials From: 0 Proxy File (default, used),
  1 Object, 2 Scene (match by name/prefix); `[12001]` Prefix; `[12002]` lists the materials baked into the .rs as
  `<source .c4d name>:<material name>`. With mode 0 the look can only change by re-exporting the proxy; mode 2 would take
  editable scene materials of those names (name matching not render-tested).
- **Instances** (`Oinstance`, render-instance mode) of a proxy render correctly, also when the proxy sits in a hidden
  "assets" group — the same pattern as hidden masters. But not when the proxy object's OWN render visibility is off: 800 instances
  rendered nothing (2027.0); keep the master on and hide its parent group. Swapping embedded masters for proxies: put the proxy where the
  master was, relink every instance whose `INSTANCEOBJECT_LINK == master`, and if the exported asset was re-centred,
  compensate each instance with `mg.off -= mg.MulV(shift)`. Then delete the master and the materials only it used.
  Result in one scene: 153 MB → 79 MB, renders unchanged.

## Image sequences on the Texture node (verified C4D 2026.4, by rendering a barcode sequence)
- `texturesampler.tex0` sub-ports (Int64 unless noted): `path` (Url), `animation` = Mode
  (0 Off, 1 Once, 2 Loop, 3 Ping-Pong), `timing` (0 Frame, 1 Time, 2 Range), `framestart`, `frameend`,
  `framerate`, `startoffset`, `loops`, `rangestart`/`rangeend` (TimeValue).
- Measured with Mode Once: **Frame** → scene frame f shows `framestart + f` (fps ignored).
  **Time** → scene time t shows `framestart + startoffset + floor(framerate · t)`; before the first
  frame the texture is blank, after the last it holds. So with `framestart = N0`,
  `startoffset = −N0`, `framerate = 30` a sequence numbered in 30 fps edit frames plays at its edit
  time in a scene of any fps whose time equals edit time (same rule AE uses to nest 30 in 50 fps).
  Checked at 50 fps and at 30 fps: at exact frame times (30 fps scene, 30 fps sequence) there is no
  floating-point off-by-one — frames 509…855 all mapped to themselves, in Time and in Frame timing.
- `rangestart`/`rangeend` can't be set from Python: `SetPortValue` rejects `maxon.TimeValue`
  (also wrapped in `maxon.Data`) — use Time + start offset instead of Range.
- A relative path into a sub-folder works: `maxon.Url("relative:///Sub/seq_00509.png")` resolves
  like `c4d.GenerateTexturePath(doc_path, "Sub/seq_00509.png", "")` (doc folder or its `tex`).
- How to test any texture mapping: generate a sequence whose frames encode their own number as
  black/white stripes plus an always-white reference stripe (an all-black frame is
  indistinguishable from "no texture"), map it emission-only on a camera-filling plane with UVW
  projection (a Python texture tag defaults to Spherical), set the camera on the Main take,
  RenderDocument small frames and decode the stripes.

## Test renders you can verify
```python
rd = doc.GetActiveRenderData().GetClone()
rd[c4d.RDATA_XRES], rd[c4d.RDATA_YRES] = 480, 270
rd[c4d.RDATA_FRAMESEQUENCE] = c4d.RDATA_FRAMESEQUENCE_CURRENTFRAME; rd[c4d.RDATA_SAVEIMAGE] = False
bmp = c4d.bitmaps.MultipassBitmap(480, 270, c4d.COLORMODE_RGB)
res = c4d.documents.RenderDocument(doc, rd.GetDataInstance(), bmp, c4d.RENDERFLAGS_EXTERNAL)  # 0 = ok
```
- Returns well under the 60 s limit at this size. Set `doc.SetTime(...)` first.
- **Never RenderDocument a `TakeToDocument()` copy with Redshift** (verified 2026.4): at 961×600 it
  held C4D's main thread for 8+ minutes until the user had to restart C4D — unsaved work was lost.
  The same scene's live document rendered 400×250 in < 60 s. Render a take by making it current on
  the live doc (restore it after), keep frames small, or use the adapter's `start_render` (own thread).
  After a long synchronous call the adapter times out on everything (`ping` too) — don't queue more.
  **On 2027.0 (Windows) even a fresh 160×90 doc hung this way, and so did `start_render` and the Render
  Queue** — read "Redshift renders from inside the GUI can hang C4D" in `cinema4d-mcp` first.
- A geometry/texture placement check needs no render: export the deformed mesh + UVs, project it,
  and warp the texture frame per quad onto the plate (OpenCV `getPerspectiveTransform` per quad,
  combine with `max`, skip quads within a few cm of the camera — they project huge and paint black).
- Verify numerically: sample `bmp.GetPixel(x, y)` in the region of interest and bucket colours
  (a magenta default on a lookup node = "attribute not found").
- To look at it (any OS, no files): save to `c4d.storage.MemoryFileStruct` as JPEG, print base64,
  decode in the sandbox — full recipe, crops and contact sheets in `cinema4d-render-preview`.
  (Old macOS route: `bmp.Save('/tmp/x.png', c4d.FILTER_PNG)` → `sips` → `base64`.)
- Simulations: render a clone stepped from frame 0 with `RENDERFLAGS_NODOCUMENTCLONE` so the sim
  state is kept (verified with native particles).
- A scene's render output path may be a Windows path (`D:/...`) — on macOS that creates a folder named
  `D:` next to the scene; keep SAVEIMAGE off for tests.

## Rendering a take with Redshift from a script (verified C4D 2026.4, macOS)
- `RenderDocument` with Redshift on a **headless c4dpy** document, and in the GUI on an in-memory
  `TakeToDocument` copy, returned 0 but wrote a uniform blank image (1.6 KB PNG). The recipe above
  (active document in the GUI) is the one that renders.
- Working route for a take: open the file in the GUI, `td.SetCurrentTake(take)`, clone the take's
  render setting (`GetClone(c4d.COPYFLAGS_NO_HIERARCHY)`), set `RDATA_RENDERENGINE = 1036219`, insert
  `BaseVideoPost(1036219)` if missing, `doc.InsertRenderDataLast(rd)` and **`take.SetRenderData(td, rd)`**
  — a take's own render setting wins over `doc.SetActiveRenderData(rd)` (the first try rendered the
  take's Viewport setting). Then the Maxon MCP `start_render` (threaded; C4D stays usable), poll
  `get_render_status`, close the document with `force` so nothing is saved.
- Result code **1 = out of memory** after ~10 s while After Effects held 57 GB on a 64 GB
  unified-memory Mac; after `app.purge(PurgeTarget.ALL_CACHES)` in AE (−50 GB) it rendered. Check
  `top -o mem` before blaming the scene. (With Rendering Mode `[21151] = 1` progressive it also failed
  with 1 — not retried after the purge; bucket mode `0` rendered.)
- Redshift videopost ids seen: 21151 Rendering Mode, 1003 progressive passes, 1101/1102 samples
  min/max, 5801 global displacement, 5002 refraction trace depth, 9006 refraction (another depth).
  Preview settings for a refractive blob scene with 500k sphere clones: displacement off, refraction
  depth 2, 640×360 → ~1.5 min per frame (a 960×540 frame with every clone emitting white took ~10 min).
- MoGraph colour in a material: Color User Data node (`rsuserdatacolor`) with attribute `RSMGColor`
  reads the clone colour set by effectors (seen in a production clone material feeding a ramp).

## Volumes: RS Volume object and volume material (verified by Commandline renders, C4D 2027.0)
- RS Volume = object type **1038655**. Its file (param 10000) is a Redshift file custom type; set the
  path through the **sub-ID**: `v[c4d.REDSHIFT_VOLUME_FILE, c4d.REDSHIFT_FILE_PATH] = "D:/x/a.0100.vdb"`
  (reads back as `file:///...`). DEAD END: `SetParameter(DescID(DescLevel(10000, DTYPE_FILENAME...)))`
  only stores a str — the render log says `Volume grids: 0`. The native Volume Loader (1039866) loads
  in C4D but Redshift ignores it too (0 grids).
- Sequences: `####` is NOT a token ("Could not resolve ...t.####50.vdb"). Give one numbered file and
  `[F, REDSHIFT_FILE_ANIMATION_MODE] = ..._MODE_SIMPLE`, `TIMING_MODE = ..._TIMING_MODE_TIME`,
  `FRAME_RATE = 30`, `FRAME_START = first`, `FRAME_END = last`, **`FRAME_OFFSET = -first`**: it loads
  number `start + offset + floor(30 t)` = the 30 fps frame in a 60 fps document (without the offset
  frame 3100 loaded start + 3100 → clamped to the last file). Defaults clamp to the file you gave.
  The volume lists every frame of start..end as a scene asset (`GetAllAssetsNew`), so Team Render sees it.
- Velocity grids 12000–12002, velocity scale 12003; `13000 Channels` stays empty in c4dpy.
- Check the render log (`C:\ProgramData\Redshift\Log\Log.Latest.N\log.html`): `Loading: ...vdb` and
  `Volume grids: N`.
- **A volume whose only loaded grid is all zeros crashes Redshift** ("ASSERT FAILED Scene.cpp:1919
  RSScene is locked", Redshift disabled, every machine, same frame): a pure-emission fire after the
  burn (temperature/flame all 0 → pruned to one empty tile, log "Num voxels total: 64"). Fix: let the
  material also read a grid that is never empty (`density_name = density`, `density = 0`) — look
  unchanged (pixel-identical), crash gone (2 grids loaded).
- **Pure-emission volumes need `density` = 0**: with no `density_name` the default density 1 fills the
  whole VDB bounding box (a black, alpha-1 box). Emission from a channel is strong — on a ×10 (cm)
  VDB, temperature × 0.6–1.0 / flame × 0.05 gave a fire about as bright as a Houdini GL glow of
  emitscale 2–5. Colour by channel: `volumescalarattribute` (channel, old_min/max) → `rscolormix`
  `.mixamount` → `standardvolume.emission_tint` works (2-key ramp; `rsramp` gradient not settable).
- Emission from `density` for white haze blows out (peak 36 where alpha saturates) — light it instead:
  a white RS dome (camera contribution `[10042] = 0`) enabled only in the smoke takes; scatter white
  for white haze, dark scatter for black smoke. Density per cm: ~0.3–0.35 matched GL opacity of a
  Houdini densityscale 1.5–3 volume scaled ×10.
- Volume material: node `standardvolume` → output port `com.redshift3d.redshift4c4d.node.output.volume`
  (output ports: displacement, surface, rs_uv_context, contour, light, environment, volume, viewport,
  materialid). Inputs: `density_name`, `density`, `scatter_color`, `scatter_scale`, `anisotropy_mode`,
  `anisotropy`, `diameter`, `transmittance_color`, `depth`, `emission_name`, `blackbody_mode`,
  `emission_tint`, `blackbody_temperature`, `blackbody_offset`, `emission_scale`,
  `shadow_density_scale`, `extinction_falloff`, … The older `volume` node has scatter / absorption /
  emission ramps and `*_old/new_min/max` remaps; channel readers `volumescalarattribute`
  (`channel_name`, `old/new_min/max`) and `volumecolorattribute`.
- RS Object tag **matte / holdout**: 4999 override, 4000 enabled, 4004 alpha, 4001 show background,
  4002 apply to secondary rays; shadow matte 4008–4010. Verified: one tag on the **parent null** of a
  53-mesh CAD model, overridden per take (4999/4000 on, 4004 = 0, 4001 off), cut the volumes and left
  alpha 0 — no tag per mesh needed.
- Scene lights: check that a take really has light before judging a lit material — a production RS
  take had every light disabled (its X-ray Fresnel engine material is unlit), so particles with a lit
  material rendered black. Use the emission-only "lit" recipe above for them.
- RS camera `[13000]` Background 2 = Override (colour) writes that colour into RGB where alpha is 0
  (grey 0.62 over a premultiplied EXR) — set 1 (Off) in pass takes.
- Commandline renders (outside the GUI, the safe way to test): `Commandline.exe
  g_licenseModel=LICENSEMODEL::MAXONAPP -render scene.c4d -take <name> -frame 456 456 -oimage <path>`.
  Two Redshift renders on one GPU at once → "Rendering failed: Out of memory"; run them one by one.
  **`-frame a b` counts DOCUMENT frames**: in a 60 fps scene rendered at 30 fps (render setting frame rate 30) `-frame 711 778`
  rendered 30 fps frames 355–389 (named 0355…); pass `-frame 2a 2b` (verified 8 Nov 2026, C4D 2027). In a sequence, Commandline
  loads the scene once: frames took 2–10 s where single-frame tests reported 7–30 s.
  Bash: build the `-oimage` path with `cygpath -w "$dir/$name"` in one piece — `"...\${var}"` inside double quotes left the
  variable unexpanded ("Files cannot be written - please check output paths!"). The same message came from a new render setting
  with multi-pass saving left on and no path (`RDATA_MULTIPASS_ENABLE` / `_SAVEIMAGE` = False).
- **Glossy liquid particles in an unlit (all lights off) take** (verified 8 Nov 2026): RS Standard (IOR 1.47, roughness 0.04,
  transmission 0.8 golden) lit by a studio-HDRI dome that is on only in those takes (camera contribution 0). A matte holdout on
  the surrounding geometry still shadows the dome and shows black in reflections/refractions (the droplets came out brown):
  in those takes override the holdout's RS Object tag visibility 2002 casts shadows, 2005 AO, 2006 reflections, 2007
  refractions, 2010 GI = False — it stays a matte for the camera.
- An RS Volume scaled ×100 (Houdini metres → cm) adds emission up ×100 along the ray: scale the material's emission down by the
  same factor. Six RS point lights at intensity 60 000 around a 1 m object gave values ~50; 4 was right.

## Verified dead end: per-particle colour on Alembic Particle Groups
- Positions and radius render, but colour does not reach Redshift: Vertex Attribute Lookup `__cd__`
  → default (magenta); Particle Attribute Lookup `color` / `__cd__` → black; Color User Data
  `__cd__` → black. Cause: the colour channel is empty in real documents (see `cinema4d-alembic`).
  Ruled out: render engine, OCIO, fps/time range, doc path, scene objects, materials.
- Simplest working route (used in production, Nov 2026): **colour bins** — in Houdini give each point
  a bin by its Cd (e.g. max(Cd) > 0.85 / 0.55 / 0.15 / rest), export one Alembic per bin, one Particle
  Group + material per bin. Points that change colour just move between files.
- Routes instead: Redshift Proxy from Houdini (needs Redshift for Houdini; Cd via RS Point
  Attribute), polygon mesh with point Cd (spheres copied to points or a VDB mesh → Vertex Color tag →
  Vertex Attribute Lookup; heavy files), a procedural colour in the RS shader (age/position driven;
  whether Particle Attribute Lookup reads `age` is untested), or clones on a mesh whose vertex maps
  drive MoGraph colour (`cinema4d-alembic`).

## Keeping this skill current
After any session that used Houdini/Cinema 4D via MCP, or whenever something new is verified:
1. Add gotchas/recipes ONLY if tested and working in a real scene; mark anything else "(unverified)".
2. Correct entries that proved wrong — don't append contradictions.
3. Put each finding in the skill it belongs to (see the indexes in `houdini-mcp` and `cinema4d-mcp`);
   project-specific facts go to that project's notes (see `project-notes`), never into a skill.
4. Keep each SKILL.md under ~300 lines; split into a new sub-skill or `references/` when it grows.
5. Re-package every changed skill (keep names) and, if the skills live in a git repo, commit and push;
   in a public repo keep personal names and client details out of the text. Tell the user in one line
   what changed.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.