set_item_position
Reposition a media item in REAPER by track index and item ID, providing a new time in seconds or as measure:beat,fraction.
Instructions
Set the position of a media item.
Item Identification - Accepts BOTH types:
track_pos_idx (integer): Simple index like 0, 1, 2
direct_item_id (string): Internal ID like "MediaItem*0x..."
Args: track_index: Index of the track item_id: EITHER integer track_pos_idx OR string direct_item_id position_time: New position in seconds (optional if position_measure is provided) position_measure: New position as "measure:beat,fraction" (optional if position_time is provided) where fraction is milliseconds (e.g., "1:1,500" = measure 1, beat 1, half beat)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item_id | Yes | ||
| track_index | Yes | ||
| position_time | No | ||
| position_measure | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |