Create Timeline Marker
create_markerCreates a named Cinema 4D timeline marker at a frame or time in seconds, with optional color and length, and returns an index for later edits.
Instructions
Create a named timeline marker at a frame (or time in seconds), with optional colour and length, in one call (c4d.documents.AddMarker). Replaces the old workaround of seeking the playhead and firing the 'Create Marker at Current Frame' command, which could only drop unnamed markers. Returns the marker's info including its index handle for set_marker / remove_marker.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Marker label (default empty). | |
| color | No | Marker colour as [r, g, b] floats in 0..1. | |
| frame | No | Frame position (mutually exclusive with time_seconds). | |
| time_seconds | No | Position in seconds (alternative to frame). | |
| length_frames | No | Marker length in frames (default 0 — a point marker). |