ColorGroup#

class pybmd.color_group.ColorGroup(color_group)[source]

Bases: WrapperBase

docstring for ColorGroup.

Methods

__init__(color_group)

get_clips_in_timeline(timeline)

Returns a list of TimelineItem that are in colorGroup in the given Timeline.

get_name()

Returns the name (string) of the ColorGroup.

get_photos_in_photo_album([photo_album])

Returns the photos of the given photo album that are in this ColorGroup.

get_post_clip_node_graph()

Returns the ColorGroup Post-clip graph.

get_pre_clip_node_graph()

Returns the ColorGroup Pre-clip graph.

set_name(group_name)

Renames ColorGroup to groupName (string).

get_name() → str[source]

Returns the name (string) of the ColorGroup.

Returns:

name of the ColorGroup.

Return type:

str

set_name(group_name: str) → bool[source]

Renames ColorGroup to groupName (string).

Parameters:

group_name (str) – color group name

Returns:

Returns True if successful, False otherwise.

Return type:

bool

get_clips_in_timeline(timeline: Timeline) → List[TimelineItem][source]

Returns a list of TimelineItem that are in colorGroup in the given Timeline.

Parameters:

timeline (Timeline) – Timeline is Current Timeline by default.

Returns:

a list of TimelineItem that are in colorGroup in the given Timeline.

Return type:

List[TimelineItem]

get_pre_clip_node_graph() → Graph[source]

Returns the ColorGroup Pre-clip graph.

Returns:

ColorGroup Pre-clip graph

Return type:

Graph

get_post_clip_node_graph() → Graph[source]

Returns the ColorGroup Post-clip graph.

Returns:

ColorGroup Post-clip graph

Return type:

Graph

get_photos_in_photo_album(photo_album: PhotoAlbum | None = None) → List[PhotoAlbumItem][source]

Returns the photos of the given photo album that are in this ColorGroup.

Parameters:

photo_album (PhotoAlbum, optional) – photo album to look in. Uses the current photo album when omitted. Defaults to None.

Returns:

photos in this ColorGroup

Return type:

List[PhotoAlbumItem]

Raises:

APIVersionError – If Resolve version < 21.1.2

Version:

Added in DaVinci Resolve 21.1.2