Timeline.move_items#

Timeline.move_items(timeline_items: List[TimelineItem], position: TimelineItemPosition | dict, move_linked_items: bool = True, subframe_precision: bool = False) → bool[source]#

Moves timeline items as a group.

The leftmost item (lowest track on ties) goes to position and the others keep their offsets relative to it. Fails, moving nothing, if any item cannot reach its destination.

Parameters:
  • timeline_items (List[TimelineItem]) – items to move

  • position (TimelineItemPosition | dict) – trackIndex and/or startFrame of the destination; omitted keys keep their current value

  • move_linked_items (bool, optional) – Move linked items too. Defaults to True.

  • subframe_precision (bool, optional) – Allow fractional startFrame values for audio clips when the “Align audio edits to frame boundaries” preference is off. Defaults to False.

Returns:

True if successful, False otherwise

Return type:

bool

Raises:

APIVersionError – If Resolve version < 21.1.2

Version:

Added in DaVinci Resolve 21.1.2