set_clip_color
Set a Session or Arrangement clip's color by palette index or packed RGB, then read it back to verify the change.
Instructions
Set and verify one clip colour, by palette index or packed RGB.
Side effects: writes Clip.color_index or Clip.color in one Live
undo step and reads the value back. Only the addressed clip changes.
Example: set_clip_color(0, 1, color_index=12) colours a Session clip;
set_clip_color(0, 0, scope="arrangement", color=0x336699) colours the
first Arrangement clip on that track.
Edge cases: exactly one of color_index (0..69) and color
(0x000000..0xFFFFFF) is required. An empty Session slot returns
BAD_INPUT. Arrangement scope needs Track.arrangement_clips (Live
11+); a host without it returns CAPABILITY_UNAVAILABLE — run
diagnose_clip_targets to see what is reachable. The write is issued
once and never retried.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| scope | No | session | |
| clip_index | Yes | ||
| color_index | No | ||
| track_index | Yes |