Timeline.set_is_enabled#

Timeline.set_is_enabled(enabled: bool) → bool[source]#

Enables or disables the timeline.

Note

In DaVinci Resolve 21.1.2, after disabling and re-enabling the current timeline, editing APIs on it (TimelineItem.add_effect, Timeline.move_items, Timeline.delete_gaps, …) keep failing even though get_is_enabled() returns True again. Calling Project.set_current_timeline with this timeline restores them.

Parameters:

enabled (bool) – True to enable, False to disable

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