Effect#
- class pybmd.effect.Effect(effect)[source]
Bases:
WrapperBaseA Fusion, OFX or audio effect applied to a TimelineItem or PhotoAlbumItem.
Effect objects are returned by
add_effectandget_effectsonTimelineItemandPhotoAlbumItem.- Version:
Added in DaVinci Resolve 21.1.2
Methods
__init__(effect)Returns the Fusion composition of this effect.
Returns the 1-based index of the effect among the item's effects of the same category.
get_info()Returns information about the effect.
Returns whether the effect is enabled.
set_index(index)Moves the effect to the given 1-based index among the item's effects of the same category, which changes the order they are applied in.
set_is_enabled(enabled)Enables or disables the effect.
- get_info() EffectInfo | None[source]
Returns information about the effect.
- Returns:
category,idandnameof the effect, None ifno information was returned
- Return type:
EffectInfo | None
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2
- get_is_enabled() bool[source]
Returns whether the effect is enabled.
- Returns:
True if the effect is enabled, False otherwise
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2
- set_is_enabled(enabled: bool) bool[source]
Enables or disables the effect.
- Parameters:
enabled (bool) – True to enable the effect, False to disable it
- Returns:
True if successful, False otherwise
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2
- get_fusion_comp() FusionComp | None[source]
Returns the Fusion composition of this effect.
- Returns:
the Fusion composition, None if this is not a Fusion effect
- Return type:
FusionComp | None
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2
- get_index() int | None[source]
Returns the 1-based index of the effect among the item’s effects of the same category.
- Returns:
the index, None if the effect is no longer applied
- Return type:
int | None
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2
- set_index(index: int) bool[source]
Moves the effect to the given 1-based index among the item’s effects of the same category, which changes the order they are applied in.
- Parameters:
index (int) – new 1-based index
- Returns:
True if successful, False otherwise
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.1.2
- Version:
Added in DaVinci Resolve 21.1.2