Folder#
- class pybmd.folder.Folder(folder)[source]
Bases:
WrapperBaseMethods
__init__(folder)analyze_for_intellisearch(identify_faces, ...)Performs Intellisearch analysis on all MediaPoolItems in the folder.
analyze_for_slate(marker_color)Performs Slate analysis on all MediaPoolItems in the folder using the current settings and specified marker color.
Clears audio classification of the MediaPoolItems within the folder and nested folders.
Clears audio transcription of the MediaPoolItems within the folder and nested folders.
export(file_path)Returns true if export of DRB folder to filePath is successful, false otherwise
Returns list of MediaPoolItem objects for all clips in this folder.
Returns true if folder is stale in collaboration mode, false otherwise
get_name()Returns name of this folder.
Return a list of sub folders in this folder.
Returns a unique ID for the media pool folder
Analyzes and classifies the audio of the MediaPoolItems within the folder and nested folders.
remove_motion_blur(deblur_option)Applies motion deblur on the MediaPoolItems in the folder.
transcribe_audio([use_speaker_detection])Transcribes audio of the MediaPoolItems within the folder and nested folders.
- get_clip_list() List[MediaPoolItem][source]
Returns list of MediaPoolItem objects for all clips in this folder.
- Return type:
List[MediaPoolItem]
- get_sub_folder_list() List[Folder][source]
Return a list of sub folders in this folder.
- Return type:
List[Folder]
- get_is_folder_stale() bool[source]
Returns true if folder is stale in collaboration mode, false otherwise
- Return type:
- export(file_path: str) bool[source]
Returns true if export of DRB folder to filePath is successful, false otherwise
- transcribe_audio(use_speaker_detection: bool | None = None) bool[source]
Transcribes audio of the MediaPoolItems within the folder and nested folders.
- clear_transcription() bool[source]
Clears audio transcription of the MediaPoolItems within the folder and nested folders.
- Returns:
Returns True if successful; False otherwise.
- Return type:
- perform_audio_classification() bool[source]
Analyzes and classifies the audio of the MediaPoolItems within the folder and nested folders.
Studio-only. Refer to DaVinci Resolve’s “Studio and AI Scripting APIs” prerequisites; returns False if requirements are not met.
- Returns:
Returns True if successful, False otherwise.
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.0.2
- Version:
Added in DaVinci Resolve 21.0.2
- clear_audio_classification() bool[source]
Clears audio classification of the MediaPoolItems within the folder and nested folders.
Studio-only. Refer to DaVinci Resolve’s “Studio and AI Scripting APIs” prerequisites; returns False if requirements are not met.
- Returns:
Returns True if successful, False otherwise.
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.0.2
- Version:
Added in DaVinci Resolve 21.0.2
- remove_motion_blur(deblur_option: MotionDeblurSettings | dict) List[List[MediaPoolItem]][source]
Applies motion deblur on the MediaPoolItems in the folder.
Studio-only. Refer to DaVinci Resolve’s “Studio and AI Scripting APIs” prerequisites.
- Parameters:
deblur_option (MotionDeblurSettings | dict) – Motion deblur settings. A
MotionDeblurSettingsmodel or a raw dict.- Returns:
- A list of
[original, newly_created] MediaPoolItem pairs.
- A list of
- Return type:
List[List[MediaPoolItem]]
- Raises:
APIVersionError – If Resolve version < 21.0.2
- Version:
Added in DaVinci Resolve 21.0.2
- analyze_for_intellisearch(identify_faces: bool, is_better_mode: bool) bool[source]
Performs Intellisearch analysis on all MediaPoolItems in the folder.
Studio-only. Refer to DaVinci Resolve’s “Studio and AI Scripting APIs” prerequisites (AI IntelliSearch Faster/Better Extras); returns False if requirements are not met.
- Parameters:
- Returns:
Returns True if required packages are installed and analysis is successful.
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.0.2
- Version:
Added in DaVinci Resolve 21.0.2
- analyze_for_slate(marker_color: MarkerColor | str) bool[source]
Performs Slate analysis on all MediaPoolItems in the folder using the current settings and specified marker color.
Studio-only. Refer to DaVinci Resolve’s “Studio and AI Scripting APIs” prerequisites (AI Slate ID Extras); returns False if requirements are not met.
- Parameters:
marker_color (MarkerColor | str) – Marker color to use. A
MarkerColorenum member or the underlying color string.- Returns:
Returns True if required packages are installed and analysis is successful.
- Return type:
- Raises:
APIVersionError – If Resolve version < 21.0.2
- Version:
Added in DaVinci Resolve 21.0.2