TimelineItem.set_position#

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

Moves the item on the timeline.

Parameters:
  • position (TimelineItemPosition | dict) – trackIndex and/or startFrame; omitted keys keep their current value, trackType is ignored

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

  • subframe_precision (bool, optional) – Allow a fractional startFrame 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