marker_add_region
Add a region to a REAPER project with specified start and end times, optional name, and RGB color. Returns indices for follow-up edits; for multiple regions, use batch addition.
Instructions
Add region. Prefer add_markers_batch for multiple.
Returns both marker_index and region_number - use marker_index
for any follow-up marker_delete/marker_edit/markers_apply call.
region_number is REAPER's own display id, which it reuses once
freed by a delete, so it will not match marker_index in a project
that's had regions deleted.
Args: start: Start seconds. end: End seconds. name: Label. color_r: Red 0-255. color_g: Green 0-255. color_b: Blue 0-255.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | ||
| name | No | ||
| start | Yes | ||
| color_b | No | ||
| color_g | No | ||
| color_r | No |