davinci-resolve-mcp 5.0.4 → 5.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2765 @@
1
+ ''' Type stubs for DaVinciResolveScript, the DaVinci Resolve Python scripting API. '''
2
+
3
+ from typing import TypedDict, Literal, TypeAlias
4
+
5
+ ClipColor = Literal['Orange', 'Apricot', 'Yellow', 'Lime', 'Olive', 'Green', 'Teal', 'Navy', 'Blue', 'Purple', 'Violet', 'Pink', 'Tan', 'Beige', 'Brown', 'Chocolate']
6
+ FlagColor = Literal['Blue', 'Cyan', 'Green', 'Yellow', 'Red', 'Pink', 'Purple', 'Fuchsia', 'Rose', 'Lavender', 'Sky', 'Mint', 'Lemon', 'Sand', 'Cocoa', 'Cream']
7
+ MarkerColor = Literal['Blue', 'Cyan', 'Green', 'Yellow', 'Red', 'Pink', 'Purple', 'Fuchsia', 'Rose', 'Lavender', 'Sky', 'Mint', 'Lemon', 'Sand', 'Cocoa', 'Cream']
8
+ MarkType = Literal['video', 'audio', 'all']
9
+ TrackType = Literal['video', 'audio', 'subtitle']
10
+
11
+ KeyframeMode: TypeAlias = float
12
+ """One of the resolve.* constants: KEYFRAME_MODE_ALL, KEYFRAME_MODE_COLOR, KEYFRAME_MODE_SIZING"""
13
+ CloudSettingKey: TypeAlias = float
14
+ """One of the resolve.* constants: CLOUD_SETTING_PROJECT_NAME, CLOUD_SETTING_PROJECT_MEDIA_PATH, CLOUD_SETTING_IS_COLLAB, CLOUD_SETTING_SYNC_MODE, CLOUD_SETTING_IS_CAMERA_ACCESS"""
15
+ CloudSyncMode: TypeAlias = float
16
+ """One of the resolve.* constants: CLOUD_SYNC_NONE, CLOUD_SYNC_PROXY_ONLY, CLOUD_SYNC_PROXY_AND_ORIG"""
17
+ AudioSyncSettingKey: TypeAlias = float
18
+ """One of the resolve.* constants: AUDIO_SYNC_MODE, AUDIO_SYNC_CHANNEL_NUMBER, AUDIO_SYNC_RETAIN_EMBEDDED_AUDIO, AUDIO_SYNC_RETAIN_VIDEO_METADATA"""
19
+ AudioSyncMode: TypeAlias = float
20
+ """One of the resolve.* constants: AUDIO_SYNC_WAVEFORM, AUDIO_SYNC_TIMECODE, AUDIO_SYNC_IN, AUDIO_SYNC_OUT, AUDIO_SYNC_MARKER"""
21
+ AudioSyncChannel: TypeAlias = float
22
+ """One of the resolve.* constants: AUDIO_SYNC_CHANNEL_AUTOMATIC, AUDIO_SYNC_CHANNEL_MIX"""
23
+ MulticamAngleSyncMode: TypeAlias = float
24
+ """One of the resolve.* constants: MULTICAM_ANGLE_SYNC_IN, MULTICAM_ANGLE_SYNC_OUT, MULTICAM_ANGLE_SYNC_TIMECODE, MULTICAM_ANGLE_SYNC_AUDIO, MULTICAM_ANGLE_SYNC_MARKER"""
25
+ MulticamAngleNameMode: TypeAlias = float
26
+ """One of the resolve.* constants: MULTICAM_ANGLE_NAME_SEQUENTIAL, MULTICAM_ANGLE_NAME_ANGLE, MULTICAM_ANGLE_NAME_CAMERA, MULTICAM_ANGLE_NAME_CLIP, MULTICAM_ANGLE_NAME_FILE"""
27
+ MulticamDetectMode: TypeAlias = float
28
+ """One of the resolve.* constants: MULTICAM_DETECT_BY_CAMERA_NUMBER, MULTICAM_DETECT_BY_ANGLE, MULTICAM_DETECT_BY_REEL_NUMBER, MULTICAM_DETECT_BY_REEL_NAME, MULTICAM_DETECT_BY_ROLL_CARD, MULTICAM_DETECT_NONE"""
29
+ MulticamAudioMode: TypeAlias = float
30
+ """One of the resolve.* constants: MULTICAM_AUDIO_ADAPTIVE, MULTICAM_AUDIO_SOURCE, MULTICAM_AUDIO_REFERENCE, MULTICAM_AUDIO_ALL"""
31
+ CloudSyncStatus: TypeAlias = float
32
+ """One of the resolve.* constants: CLOUD_SYNC_DEFAULT, CLOUD_SYNC_DOWNLOAD_IN_QUEUE, CLOUD_SYNC_DOWNLOAD_IN_PROGRESS, CLOUD_SYNC_DOWNLOAD_SUCCESS, CLOUD_SYNC_DOWNLOAD_FAIL, CLOUD_SYNC_DOWNLOAD_NOT_FOUND, CLOUD_SYNC_UPLOAD_IN_QUEUE, CLOUD_SYNC_UPLOAD_IN_PROGRESS, CLOUD_SYNC_UPLOAD_SUCCESS, CLOUD_SYNC_UPLOAD_FAIL, CLOUD_SYNC_UPLOAD_NOT_FOUND, CLOUD_SYNC_SUCCESS"""
33
+ SlateMarkerColor: TypeAlias = float
34
+ """One of the resolve.* constants: MARKER_NONE, MARKER_BLUE, MARKER_CYAN, MARKER_GREEN, MARKER_YELLOW, MARKER_RED, MARKER_PINK, MARKER_PURPLE, MARKER_FUCHSIA, MARKER_ROSE, MARKER_LAVENDER, MARKER_SKY, MARKER_MINT, MARKER_LEMON, MARKER_SAND, MARKER_COCOA, MARKER_CREAM"""
35
+ NormalizeAudioSetLevelMode: TypeAlias = float
36
+ """One of the resolve.* constants: NORMALIZE_AUDIO_SET_LEVEL_RELATIVE, NORMALIZE_AUDIO_SET_LEVEL_INDEPENDENT"""
37
+ AutoAlignSyncUsing: TypeAlias = float
38
+ """One of the resolve.* constants: AUTO_ALIGN_CLIPS_USING_WAVEFORM, AUTO_ALIGN_CLIPS_USING_TIMECODE"""
39
+ AutoAlignUseTrack: TypeAlias = float
40
+ """One of the resolve.* constants: AUTO_ALIGN_CLIPS_WAVEFORM_TRACK_MIX, AUTO_ALIGN_CLIPS_WAVEFORM_TRACK_AUTOMATIC"""
41
+ TimelineExportType: TypeAlias = float
42
+ """One of the resolve.* constants: EXPORT_AAF, EXPORT_DRT, EXPORT_EDL, EXPORT_FCP_7_XML, EXPORT_FCPXML_1_8, EXPORT_FCPXML_1_9, EXPORT_FCPXML_1_10, EXPORT_HDR_10_PROFILE_A, EXPORT_HDR_10_PROFILE_B, EXPORT_TEXT_CSV, EXPORT_TEXT_TAB, EXPORT_DOLBY_VISION_VER_2_9, EXPORT_DOLBY_VISION_VER_4_0, EXPORT_DOLBY_VISION_VER_5_1, EXPORT_OTIO, EXPORT_ALE, EXPORT_ALE_CDL"""
43
+ TimelineExportSubtype: TypeAlias = float
44
+ """One of the resolve.* constants: EXPORT_NONE, EXPORT_AAF_NEW, EXPORT_AAF_EXISTING, EXPORT_CDL, EXPORT_SDL, EXPORT_MISSING_CLIPS"""
45
+ SubtitleSettingKey: TypeAlias = float
46
+ """One of the resolve.* constants: SUBTITLE_LANGUAGE, SUBTITLE_CAPTION_PRESET, SUBTITLE_CHARS_PER_LINE, SUBTITLE_LINE_BREAK, SUBTITLE_GAP"""
47
+ AutoCaptionLanguage: TypeAlias = float
48
+ """One of the resolve.* constants: AUTO_CAPTION_AUTO, AUTO_CAPTION_MANDARIN_SIMPLIFIED, AUTO_CAPTION_DUTCH, AUTO_CAPTION_ENGLISH, AUTO_CAPTION_FINNISH, AUTO_CAPTION_FRENCH, AUTO_CAPTION_GERMAN, AUTO_CAPTION_HINDI, AUTO_CAPTION_INDONESIAN, AUTO_CAPTION_ITALIAN, AUTO_CAPTION_JAPANESE, AUTO_CAPTION_KOREAN, AUTO_CAPTION_MALAY, AUTO_CAPTION_NORWEGIAN, AUTO_CAPTION_POLISH, AUTO_CAPTION_PORTUGUESE, AUTO_CAPTION_ROMANIAN, AUTO_CAPTION_RUSSIAN, AUTO_CAPTION_SPANISH, AUTO_CAPTION_SWEDISH, AUTO_CAPTION_TURKISH, AUTO_CAPTION_VIETNAMESE, AUTO_CAPTION_TAMIL, AUTO_CAPTION_THAI, AUTO_CAPTION_DANISH, AUTO_CAPTION_MANDARIN_TRADITIONAL"""
49
+ AutoCaptionPreset: TypeAlias = float
50
+ """One of the resolve.* constants: AUTO_CAPTION_SUBTITLE_DEFAULT, AUTO_CAPTION_TELETEXT, AUTO_CAPTION_NETFLIX"""
51
+ AutoCaptionLineBreak: TypeAlias = float
52
+ """One of the resolve.* constants: AUTO_CAPTION_LINE_SINGLE, AUTO_CAPTION_LINE_DOUBLE"""
53
+ DolbyVisionAnalysisType: TypeAlias = float
54
+ """One of the resolve.* constants: DLB_BLEND_SHOTS"""
55
+ DynamicZoomEase: TypeAlias = float
56
+ """One of the resolve.* constants: DYNAMIC_ZOOM_EASE_LINEAR, DYNAMIC_ZOOM_EASE_IN, DYNAMIC_ZOOM_EASE_OUT, DYNAMIC_ZOOM_EASE_IN_AND_OUT"""
57
+ CompositeMode: TypeAlias = float
58
+ """One of the resolve.* constants: COMPOSITE_NORMAL, COMPOSITE_ADD, COMPOSITE_SUBTRACT, COMPOSITE_DIFF, COMPOSITE_MULTIPLY, COMPOSITE_SCREEN, COMPOSITE_OVERLAY, COMPOSITE_HARDLIGHT, COMPOSITE_SOFTLIGHT, COMPOSITE_DARKEN, COMPOSITE_LIGHTEN, COMPOSITE_COLOR_DODGE, COMPOSITE_COLOR_BURN, COMPOSITE_EXCLUSION, COMPOSITE_HUE, COMPOSITE_SATURATE, COMPOSITE_COLORIZE, COMPOSITE_LUMA_MASK, COMPOSITE_DIVIDE, COMPOSITE_LINEAR_DODGE, COMPOSITE_LINEAR_BURN, COMPOSITE_LINEAR_LIGHT, COMPOSITE_VIVID_LIGHT, COMPOSITE_PIN_LIGHT, COMPOSITE_HARD_MIX, COMPOSITE_LIGHTER_COLOR, COMPOSITE_DARKER_COLOR, COMPOSITE_FOREGROUND, COMPOSITE_ALPHA, COMPOSITE_INVERTED_ALPHA, COMPOSITE_LUM, COMPOSITE_INVERTED_LUM"""
59
+ RetimeProcess: TypeAlias = float
60
+ """One of the resolve.* constants: RETIME_USE_PROJECT, RETIME_NEAREST, RETIME_FRAME_BLEND, RETIME_OPTICAL_FLOW"""
61
+ MotionEstimation: TypeAlias = float
62
+ """One of the resolve.* constants: MOTION_EST_USE_PROJECT, MOTION_EST_STANDARD_FASTER, MOTION_EST_STANDARD_BETTER, MOTION_EST_ENHANCED_FASTER, MOTION_EST_ENHANCED_BETTER, MOTION_EST_SPEED_WARP_FASTER, MOTION_EST_SPEED_WARP_BETTER, MOTION_EST_METAL"""
63
+ Scaling: TypeAlias = float
64
+ """One of the resolve.* constants: SCALE_USE_PROJECT, SCALE_CROP, SCALE_FIT, SCALE_FILL, SCALE_STRETCH"""
65
+ ResizeFilter: TypeAlias = float
66
+ """One of the resolve.* constants: RESIZE_FILTER_USE_PROJECT, RESIZE_FILTER_SHARPER, RESIZE_FILTER_SMOOTHER, RESIZE_FILTER_BICUBIC, RESIZE_FILTER_BILINEAR, RESIZE_FILTER_BESSEL, RESIZE_FILTER_BOX, RESIZE_FILTER_CATMULL_ROM, RESIZE_FILTER_CUBIC, RESIZE_FILTER_GAUSSIAN, RESIZE_FILTER_LANCZOS, RESIZE_FILTER_MITCHELL, RESIZE_FILTER_NEAREST_NEIGHBOR, RESIZE_FILTER_QUADRATIC, RESIZE_FILTER_SINC, RESIZE_FILTER_LINEAR"""
67
+ CacheMode: TypeAlias = float
68
+ """One of the resolve.* constants: CACHE_AUTO_ENABLED, CACHE_DISABLED, CACHE_ENABLED"""
69
+ DialogueLevelerMode: TypeAlias = float
70
+ """One of the resolve.* constants: DIALOGUE_LEVELER_MODE_ALLOW_WIDER_DYNAMICS, DIALOGUE_LEVELER_MODE_OPTIMIZE_MODERATE_LEVELS, DIALOGUE_LEVELER_MODE_MORE_LIFT_FOR_LOW_LEVELS, DIALOGUE_LEVELER_MODE_LIFT_SOFT_WHISPERY_SOURCES"""
71
+ FlattenMulticamGrade: TypeAlias = float
72
+ """One of the resolve.* constants: FLATTEN_MULTICAM_COPY_GRADE, FLATTEN_MULTICAM_RETAIN_GRADE_FROM_ANGLE"""
73
+ ExportLutType: TypeAlias = float
74
+ """One of the resolve.* constants: EXPORT_LUT_17PTCUBE, EXPORT_LUT_33PTCUBE, EXPORT_LUT_65PTCUBE, EXPORT_LUT_PANASONICVLUT"""
75
+ SmartSwitchQuality: TypeAlias = float
76
+ """One of the resolve.* constants: SMART_SWITCH_QUALITY_FASTER, SMART_SWITCH_QUALITY_BETTER"""
77
+ SmartSwitchWideAngleFrequency: TypeAlias = float
78
+ """One of the resolve.* constants: SMART_SWITCH_WIDE_ANGLE_FREQ_LOW, SMART_SWITCH_WIDE_ANGLE_FREQ_MEDIUM, SMART_SWITCH_WIDE_ANGLE_FREQ_HIGH"""
79
+ SmartSwitchAnalysisMode: TypeAlias = float
80
+ """One of the resolve.* constants: SMART_SWITCH_ANALYSIS_MODE_NONE, SMART_SWITCH_ANALYSIS_MODE_DETECT_WIDE_ANGLE, SMART_SWITCH_ANALYSIS_MODE_AUDIO_ONLY"""
81
+ CloneChecksumType: TypeAlias = float
82
+ """One of the resolve.* constants: CLONE_CHECKSUM_TYPE_NONE, CLONE_CHECKSUM_TYPE_FILESIZE, CLONE_CHECKSUM_TYPE_CRC32, CLONE_CHECKSUM_TYPE_MD5, CLONE_CHECKSUM_TYPE_SHA256, CLONE_CHECKSUM_TYPE_SHA512, CLONE_CHECKSUM_TYPE_XXH_64"""
83
+
84
+ class AAFImportOptions(TypedDict, total=False):
85
+ autoImportSourceClipsIntoMediaPool: bool
86
+ """Import source clips into media pool (default: True)"""
87
+ ignoreFileExtensionsWhenMatching: bool
88
+ """Ignore file extensions when matching (default: False)"""
89
+ linkToSourceCameraFiles: bool
90
+ """Link to source camera files (default: False)"""
91
+ useSizingInfo: bool
92
+ """Use sizing information (default: False)"""
93
+ importMultiChannelAudioTracksAsLinkedGroups: bool
94
+ """Import multi-channel audio tracks as linked groups (default: False)"""
95
+ insertAdditionalTracks: bool
96
+ """Insert additional tracks (default: True)"""
97
+ insertWithOffset: str
98
+ """Insert with timecode offset, e.g. '00:00:00:00' (applies when insertAdditionalTracks is False)"""
99
+ sourceClipsPath: str
100
+ """Filesystem path to search for source clips if media is inaccessible"""
101
+ sourceClipsFolders: list[Folder]
102
+ """Media Pool folders to search for source clips"""
103
+
104
+ class AppendClipInfo(TypedDict, total=False):
105
+ mediaPoolItem: 'MediaPoolItem'
106
+ """MediaPoolItem object to append"""
107
+ startFrame: float
108
+ """Source start frame (optional)"""
109
+ endFrame: float
110
+ """Source end frame (optional)"""
111
+ mediaType: int
112
+ """1 - Video only, 2 - Audio only (optional)"""
113
+ trackIndex: int
114
+ """Destination track index (optional)"""
115
+ recordFrame: float
116
+ """Record frame position (optional)"""
117
+
118
+ class AudioSyncSettings(TypedDict, total=False):
119
+ syncMode: AudioSyncMode
120
+ """Default: resolve.AUDIO_SYNC_TIMECODE"""
121
+ channelNumber: int | AudioSyncChannel
122
+ """For AUDIO_SYNC_WAVEFORM mode: channel offset, 1 to min channel count across input clips (default: 1)"""
123
+ retainEmbeddedAudio: bool
124
+ """Keep original embedded audio (default: False)"""
125
+ retainVideoMetadata: bool
126
+ """Keep video metadata (default: False)"""
127
+
128
+ class AutoAlignOptions(TypedDict, total=False):
129
+ SyncUsing: AutoAlignSyncUsing
130
+ """Default: resolve.AUTO_ALIGN_CLIPS_USING_TIMECODE"""
131
+ UseTrack: int | AutoAlignUseTrack
132
+ """For USING_WAVEFORM mode: track index, 1, 2, ... (default: 1)"""
133
+
134
+ class AutoCaptionSettings(TypedDict, total=False):
135
+ language: AutoCaptionLanguage
136
+ """Default: resolve.AUTO_CAPTION_AUTO"""
137
+ captionPreset: AutoCaptionPreset
138
+ """Default: resolve.AUTO_CAPTION_SUBTITLE_DEFAULT"""
139
+ charsPerLine: int
140
+ """Max characters per line, 1 to 60 (default: 42, varies by preset/language)"""
141
+ lineBreak: AutoCaptionLineBreak
142
+ """Default: resolve.AUTO_CAPTION_LINE_SINGLE"""
143
+ gap: int
144
+ """Gap between subtitles in frames, 0 to 10 (default: 0)"""
145
+
146
+ class CDL(TypedDict, total=False):
147
+ NodeIndex: int
148
+ """Target node index, 1 <= NodeIndex <= total number of nodes"""
149
+ Slope: str
150
+ """RGB slope values as space-separated string, e.g. '0.5 0.4 0.2'"""
151
+ Offset: str
152
+ """RGB offset values as space-separated string, e.g. '0.4 0.3 0.2'"""
153
+ Power: str
154
+ """RGB power values as space-separated string, e.g. '0.6 0.7 0.8'"""
155
+ Saturation: float
156
+ """Saturation value, e.g. 0.65"""
157
+
158
+ ClipProperties = TypedDict('ClipProperties', {
159
+ 'Alpha mode': str, # Alpha mode, e.g. 'None', 'Straight', 'Premultiplied'
160
+ 'Audio Bit Depth': str, # Audio bit depth, e.g. '24'
161
+ 'Audio Ch': str, # Number of audio channels, e.g. '2'
162
+ 'Audio Codec': str, # Audio codec, e.g. 'AAC', 'Linear PCM'
163
+ 'Audio Offset': str, # Audio offset value
164
+ 'Bit Depth': str, # Video bit depth, e.g. '10'
165
+ 'Clip Color': ClipColor | Literal[''], # Clip color, e.g. 'Orange', 'Teal'. Empty when no color is set
166
+ 'Clip Directory': str, # Directory path of the clip
167
+ 'Clip Name': str, # User-assigned clip name
168
+ 'Cloud Sync': str, # Cloud sync status as string
169
+ 'Data Level': str, # Data level, e.g. 'Auto', 'Full', 'Video'
170
+ 'Date Added': str, # Date clip was added to media pool
171
+ 'Date Created': str, # Date clip was created
172
+ 'Date Modified': str, # Date clip was last modified
173
+ 'Drop frame': str, # Drop frame setting, e.g. '0', '1'
174
+ 'Duration': str, # Duration in timecode, e.g. '00:00:10:00'
175
+ 'Enable Deinterlacing': str, # Deinterlacing enabled, e.g. '0', '1'
176
+ 'End TC': str, # End timecode, e.g. '01:00:10:00'
177
+ 'FPS': float, # Frame rate, e.g. 23.976, 25.0
178
+ 'Field Dominance': str, # Field dominance, e.g. 'Progressive'
179
+ 'File Name': str, # Source file name
180
+ 'File Path': str, # Full path to source file
181
+ 'Flags': str, # Flag colors assigned to the clip
182
+ 'Format': str, # File format, e.g. 'QuickTime', 'MXF'
183
+ 'Frames': str, # Total frame count
184
+ 'IDT': str, # ACES Input Device Transform
185
+ 'In': str, # Mark in point
186
+ 'Input Color Space': str, # Input color space, e.g. 'Rec.709'
187
+ 'Input Gamma': str, # Input gamma, e.g. 'Gamma 2.4'
188
+ 'Input LUT': str, # Input LUT filename
189
+ 'Input Sizing Preset': str, # Sizing preset name
190
+ 'Noise Reduction': str, # Noise reduction value
191
+ 'Offline Reference': str, # Offline reference path
192
+ 'Online Status': str, # Online/offline status
193
+ 'Out': str, # Mark out point
194
+ 'PAR': str, # Pixel aspect ratio
195
+ 'Proxy': str, # Proxy status
196
+ 'Proxy Media Path': str, # Path to proxy media
197
+ 'Reel Name': str, # Reel name
198
+ 'Resolution': str, # Resolution, e.g. '1920x1080'
199
+ 'Sample Rate': str, # Audio sample rate, e.g. '48000'
200
+ 'Sharpness': str, # Sharpness value
201
+ 'Start': str, # Start frame number
202
+ 'Start TC': str, # Start timecode, e.g. '01:00:00:00'
203
+ 'Super Scale': int, # Super Scale multiplier (1=off, 2=2x, 3=3x, 4=4x)
204
+ 'SuperScale Noise Reduction': str, # Super Scale noise reduction value
205
+ 'SuperScale Sharpness': str, # Super Scale sharpness value
206
+ 'Synced Audio': str, # Synced audio filename
207
+ 'Type': str, # Clip type, e.g. 'Video', 'Audio', 'Video + Audio'
208
+ 'Usage': str, # Number of times clip is used in timelines
209
+ 'Video Codec': str, # Video codec, e.g. 'H.264', 'Apple ProRes 422 HQ'
210
+ }, total=False)
211
+
212
+ class CloneStatus(TypedDict, total=False):
213
+ JobStatus: str
214
+ """'Complete', 'Cloning', 'Cancelled', or 'Failed'. If no clone job has been started yet, this is 'Complete'"""
215
+ CompletionPercentage: float
216
+ """Progress from 0.0 to 100.0"""
217
+ Error: str
218
+ """Error message (set when JobStatus is 'Failed')"""
219
+
220
+ class CloneToolSettings(TypedDict, total=False):
221
+ PreserveFolderName: bool
222
+ """Preserve folder name (default: False)"""
223
+ ChecksumType: CloneChecksumType
224
+ """Default: resolve.CLONE_CHECKSUM_TYPE_MD5"""
225
+
226
+ class CloudSettings(TypedDict, total=False):
227
+ projectName: str
228
+ """Project name"""
229
+ projectMediaPath: str
230
+ """Local media storage path"""
231
+ isCollab: bool
232
+ """Enable live collaboration mode"""
233
+ syncMode: CloudSyncMode
234
+ """Media sync mode of the cloud project"""
235
+ isCameraAccess: bool
236
+ """Enable camera access"""
237
+
238
+ class CompoundClipOptions(TypedDict, total=False):
239
+ startTimecode: str
240
+ """Start timecode, e.g. '00:00:00:00'"""
241
+ name: str
242
+ """Compound clip name"""
243
+
244
+ class CreateTimelineClipInfo(TypedDict, total=False):
245
+ mediaPoolItem: 'MediaPoolItem'
246
+ """MediaPoolItem object to append"""
247
+ startFrame: float
248
+ """Source start frame (optional)"""
249
+ endFrame: float
250
+ """Source end frame (optional)"""
251
+ recordFrame: float
252
+ """Record frame position (optional)"""
253
+
254
+ class DatabaseInfo(TypedDict, total=False):
255
+ DbType: str
256
+ """'Disk' or 'PostgreSQL'"""
257
+ DbName: str
258
+ """Name"""
259
+ IpAddress: str
260
+ """IP address of the PostgreSQL server, e.g. '127.0.0.1' (optional)"""
261
+
262
+ class DeblurOptions(TypedDict, total=False):
263
+ FileName: str
264
+ """Output file name pattern (default: '%{Source Name} Deblur')"""
265
+ Format: str
266
+ """Output format, e.g. 'mov', 'mp4'"""
267
+ Codec: str
268
+ """Output codec, e.g. 'H264', 'H265', 'ProRes422'"""
269
+ EncodingProfile: str
270
+ """Encoding profile, e.g. 'Main10' (H.264/H.265 only)"""
271
+ Encoder: str
272
+ """'Native' or 'MainConcept' (H.265 only)"""
273
+ UseExtremeMode: bool
274
+ """Use extreme deblur mode (default: True)"""
275
+ UseMarkInMarkOut: bool
276
+ """Only process mark in/out range (default: True)"""
277
+ RenderAtSourceRes: bool
278
+ """Render at source resolution (default: False)"""
279
+ UseMoreGpuMemory: bool
280
+ """Use more GPU memory for processing (default: False)"""
281
+
282
+ class EncryptDCTLOptions(TypedDict, total=False):
283
+ Name: str | None
284
+ """Output filename (default: input filename)"""
285
+ Expiry: str | None
286
+ """Valid ISO 8601 string (default: no expiry if empty value)"""
287
+ OutputFolder: str | None
288
+ """Output folder (default: user's home folder)"""
289
+
290
+ class FadeInfo(TypedDict, total=False):
291
+ FadeIn: int
292
+ """Duration in frames"""
293
+ FadeOut: int
294
+ """Duration in frames"""
295
+
296
+ class FloatingWindowParams(TypedDict, total=False):
297
+ left: float
298
+ """Left edge offset in pixels"""
299
+ right: float
300
+ """Right edge offset in pixels"""
301
+ top: float
302
+ """Top edge offset in pixels"""
303
+ bottom: float
304
+ """Bottom edge offset in pixels"""
305
+
306
+ class ImportClipInfo(TypedDict, total=False):
307
+ FilePath: str
308
+ """File path (supports %0Nd frame pattern for image sequences)"""
309
+ StartIndex: int
310
+ """Start frame index for image sequences (optional)"""
311
+ EndIndex: int
312
+ """End frame index for image sequences (optional)"""
313
+
314
+ class ImportOptions(TypedDict, total=False):
315
+ timelineName: str
316
+ """Name for the created timeline (not valid for DRT import)"""
317
+ importSourceClips: bool
318
+ """Import source clips into media pool (default: True, not valid for DRT)"""
319
+ sourceClipsPath: str
320
+ """Filesystem path to search for source clips if media is inaccessible"""
321
+ sourceClipsFolders: list[Folder]
322
+ """Media Pool folders to search for source clips if importSourceClips is False"""
323
+ interlaceProcessing: bool
324
+ """Enable interlace processing (AAF import only)"""
325
+
326
+ MarkInOutRange = TypedDict('MarkInOutRange', {
327
+ 'in': int, # Record frame relative to timeline start, e.g. 10
328
+ 'out': int, # Record frame relative to timeline start, e.g. 320
329
+ }, total=False)
330
+
331
+ class MarkInOut(TypedDict, total=False):
332
+ video: MarkInOutRange
333
+ """Video mark in/out range"""
334
+ audio: MarkInOutRange
335
+ """Audio mark in/out range"""
336
+
337
+ class MarkerInfo(TypedDict, total=False):
338
+ color: MarkerColor
339
+ """Color name, e.g. 'Blue', 'Green'"""
340
+ duration: int
341
+ """Duration in frames, e.g. 1"""
342
+ note: str
343
+ """Text note"""
344
+ name: str
345
+ """Name, e.g. 'Marker 1'"""
346
+ customData: str
347
+ """Custom data field not exposed via UI"""
348
+
349
+ class MediaStorageItemInfo(TypedDict, total=False):
350
+ media: str
351
+ """File/folder path"""
352
+ startFrame: int
353
+ """Start frame (optional)"""
354
+ endFrame: int
355
+ """End frame (optional)"""
356
+
357
+ class MulticamOptions(TypedDict, total=False):
358
+ name: str
359
+ """Clip name (auto-generated from first clip if omitted)"""
360
+ startTimecode: str
361
+ """Start timecode, default: '01:00:00:00'"""
362
+ frameRate: float
363
+ """Frame rate, e.g. 23.976 (default: project timeline frame rate)"""
364
+ angleSyncMode: MulticamAngleSyncMode
365
+ """Default: resolve.MULTICAM_ANGLE_SYNC_TIMECODE"""
366
+ channelConfig: int | AudioSyncChannel
367
+ """Audio channel for sync: 1-8 (angleSyncMode=MULTICAM_ANGLE_SYNC_AUDIO only)"""
368
+ multicamAudioMode: MulticamAudioMode
369
+ """Default: resolve.MULTICAM_AUDIO_SOURCE"""
370
+ angleNameMode: MulticamAngleNameMode
371
+ """Default: resolve.MULTICAM_ANGLE_NAME_SEQUENTIAL"""
372
+ splitAtGaps: bool
373
+ """Split at gaps (angleSyncMode=MULTICAM_ANGLE_SYNC_AUDIO only, default: False)"""
374
+ useFullClipExtents: bool
375
+ """Use full clip extents (default: False)"""
376
+ createBinForSourceClips: bool
377
+ """Create bin for source clips (default: True)"""
378
+ detectSameCameraClipsMode: MulticamDetectMode
379
+ """Default: resolve.MULTICAM_DETECT_NONE"""
380
+
381
+ class NormalizeAudioOptions(TypedDict, total=False):
382
+ normalizationMode: str
383
+ """Mode name from GetNormalizeAudioModes() (default: 'Sample Peak Program')"""
384
+ targetLevel: float
385
+ """Target level in dBFS, e.g. -9.0"""
386
+ targetLoudness: float
387
+ """Target loudness in LKFS, e.g. -24.0"""
388
+ setLevelMode: NormalizeAudioSetLevelMode
389
+ """Default: resolve.NORMALIZE_AUDIO_SET_LEVEL_RELATIVE"""
390
+
391
+ class OutputBlanking(TypedDict, total=False):
392
+ Top: int
393
+ """Top blanking in pixels"""
394
+ Bottom: int
395
+ """Bottom blanking in pixels"""
396
+ Left: int
397
+ """Left blanking in pixels"""
398
+ Right: int
399
+ """Right blanking in pixels"""
400
+
401
+ class ProjectAttributes(TypedDict, total=False):
402
+ lastModifiedDate: str
403
+ """Last modified date in ISO 8601 format, e.g. '2024-06-15T09:30:00+05:30'"""
404
+ creationDate: str
405
+ """Creation date in ISO 8601 format, e.g. '2024-06-15T09:30:00+05:30'"""
406
+ notes: str
407
+ """Project notes"""
408
+ liveCollaborationMode: str
409
+ """'multi_user' or 'single_user'"""
410
+
411
+ class ProjectSettings(TypedDict, total=False):
412
+ timelineResolutionWidth: str
413
+ """e.g. '1920'"""
414
+ timelineResolutionHeight: str
415
+ """e.g. '1080'"""
416
+ timelinePixelAspectRatio: str
417
+ """'square', 'cinemascope', '16_9' or '4_3'"""
418
+ timelineFrameRate: float | str
419
+ """Returned as a number, e.g. 23.976. Set as a string, e.g. '23.976' or '29.97 DF'"""
420
+ timelineDropFrameTimecode: str
421
+ """'0' or '1'"""
422
+ timelineInterlaceProcessing: str
423
+ """'0' or '1'"""
424
+ timelinePlaybackFrameRate: str
425
+ """Read-only. e.g. '24'"""
426
+ timelineOutputResMatchTimelineRes: str
427
+ """'0' or '1'"""
428
+ timelineOutputResolutionWidth: str
429
+ """e.g. '1920'"""
430
+ timelineOutputResolutionHeight: str
431
+ """e.g. '1080'"""
432
+ timelineOutputPixelAspectRatio: str
433
+ """'square', 'cinemascope', '16_9' or '4_3'"""
434
+ timelineInputResMismatchBehavior: str
435
+ """'centerCrop', 'scaleToFit', 'scaleToCrop' or 'stretch'"""
436
+ timelineOutputResMismatchBehavior: str
437
+ """'centerCrop', 'scaleToFit', 'scaleToCrop' or 'stretch'"""
438
+ timelineFrameRateMismatchBehavior: str
439
+ """e.g. 'resolve'"""
440
+ timelineInputResMismatchUseCustomPreset: str
441
+ """'0' or '1'"""
442
+ timelineInputResMismatchCustomPreset: str
443
+ """Input sizing preset name"""
444
+ timelineOutputResMismatchUseCustomPreset: str
445
+ """'0' or '1'"""
446
+ timelineOutputResMismatchCustomPreset: str
447
+ """Output sizing preset name"""
448
+ timelineSampleRate: str
449
+ """Audio sample rate in Hz, e.g. '48000'"""
450
+ timelineSaveThumbsInProject: str
451
+ """'0' or '1'"""
452
+ imageRetimeInterpolation: str
453
+ """'nearest', 'frameBlend' or 'opticalFlow'"""
454
+ imageMotionEstimationMode: str
455
+ """e.g. 'standardFaster'"""
456
+ imageMotionEstimationRange: str
457
+ """'small', 'medium' or 'larger'"""
458
+ imageResizeMode: str
459
+ """e.g. 'sharper'"""
460
+ imageDeinterlaceQuality: str
461
+ """'normal' or 'high'"""
462
+ imageEnableFieldProcessing: str
463
+ """'0' or '1'"""
464
+ perfCacheClipsLocation: str
465
+ """Cache files directory path"""
466
+ perfOptimisedMediaOn: str
467
+ """'0' or '1'"""
468
+ perfProxyMediaMode: str
469
+ """'0' disabled, '1' when available, '2' when source not available"""
470
+ perfRenderCacheMode: str
471
+ """'none', 'smart' or 'user'"""
472
+ perfOptimizedResolutionRatio: str
473
+ """e.g. 'auto', 'original', 'half' or 'quarter'"""
474
+ perfAutoRenderCacheEnable: str
475
+ """'0' or '1'"""
476
+ perfAutoRenderCacheAfterTime: str
477
+ """Idle time in seconds before caching starts, e.g. '5'"""
478
+ perfAutoRenderCacheTransition: str
479
+ """'0' or '1'"""
480
+ perfAutoRenderCacheComposite: str
481
+ """'0' or '1'"""
482
+ perfAutoRenderCacheFuEffect: str
483
+ """'0' or '1'"""
484
+ perfOptimisedCodec: str
485
+ """Read-only. Optimized media codec name"""
486
+ perfProxyResolutionRatio: str
487
+ """'original', 'half' or 'quarter'"""
488
+ perfRenderCacheCodec: str
489
+ """Read-only. Render cache codec name"""
490
+ isAutoColorManage: str
491
+ """'0' or '1'"""
492
+ rcmPresetMode: str
493
+ """'SDR' or 'HDR' when isAutoColorManage is '1', otherwise e.g. 'SDR Rec.709' or 'Custom'"""
494
+ separateColorSpaceAndGamma: str
495
+ """'0' or '1'"""
496
+ colorScienceMode: str
497
+ """'davinciYRGB', 'davinciYRGBColorManaged', 'davinciYRGBColorManagedv2', 'acescc' or 'acescct'"""
498
+ colorSpaceTimeline: str
499
+ """Timeline color space, e.g. 'Rec.709'"""
500
+ colorSpaceTimelineGamma: str
501
+ """Timeline gamma, e.g. 'Gamma 2.4'"""
502
+ colorSpaceInput: str
503
+ """Input color space"""
504
+ colorSpaceInputGamma: str
505
+ """Input gamma"""
506
+ colorSpaceOutput: str
507
+ """Output color space"""
508
+ colorSpaceOutputGamma: str
509
+ """Output gamma"""
510
+ colorSpaceOutputToneMapping: str
511
+ """'None', 'Simple', 'Luminance Mapping', 'DaVinci', 'Saturation Preserving' or 'RED IPP2'"""
512
+ inputDRT: str
513
+ """'None', 'Simple', 'Luminance Mapping', 'DaVinci', 'Saturation Preserving' or 'RED IPP2'"""
514
+ outputDRT: str
515
+ """'None', 'Simple', 'Luminance Mapping', 'DaVinci', 'Saturation Preserving' or 'RED IPP2'"""
516
+ useInverseDRT: str
517
+ """'0' or '1'"""
518
+ timelineWorkingLuminanceMode: str
519
+ """e.g. 'SDR 100', 'HDR 1000', 'HDR ER 1000/4000' or 'Custom'"""
520
+ timelineWorkingLuminance: str
521
+ """Working luminance in nits, e.g. '1000'"""
522
+ inputDRTSatRolloffStart: str
523
+ """Input saturation rolloff start in nits, e.g. '10000'"""
524
+ inputDRTSatRolloffLimit: str
525
+ """Input saturation rolloff limit in nits, e.g. '10000'"""
526
+ outputDRTSatRolloffStart: str
527
+ """Output saturation rolloff start in nits, e.g. '10000'"""
528
+ outputDRTSatRolloffLimit: str
529
+ """Output saturation rolloff limit in nits, e.g. '10000'"""
530
+ colorSpaceOutputGamutMapping: str
531
+ """'None', 'Saturation Mapping' or 'RED IPP2 Gamut Mapping'"""
532
+ imageResizingGamma: str
533
+ """'Timeline', 'Log', 'Linear', 'Linear - Tone Mapped', 'Gamma' or 'Gamma - Tone Mapped'"""
534
+ graphicsWhiteLevel: str
535
+ """Graphics white level in nits, e.g. '200'"""
536
+ useCATransform: str
537
+ """'0' or '1'"""
538
+ disableFusionToneMapping: str
539
+ """'0' or '1'"""
540
+ useColorSpaceAwareGradingTools: str
541
+ """'0' or '1'"""
542
+ colorAcesIDT: str
543
+ """ACES Input Device Transform"""
544
+ colorAcesGamutCompressType: str
545
+ """ACES gamut compression type"""
546
+ colorAcesODT: str
547
+ """ACES Output Device Transform"""
548
+ colorAcesNodeLUTProcessingSpace: str
549
+ """'projectSetting', 'acesccAp1' or 'acesAp0Linear'"""
550
+ colorSpaceOutputToneLuminanceMax: str
551
+ """Max output luminance in nits, e.g. '1000'"""
552
+ colorSpaceOutputGamutSaturationKnee: str
553
+ """Saturation knee, e.g. '0.9'"""
554
+ colorSpaceOutputGamutSaturationMax: str
555
+ """Saturation max, e.g. '1'"""
556
+ colorKeyframeDynamicsStartProfile: str
557
+ """Keyframe dynamics start profile, e.g. '1'"""
558
+ colorKeyframeDynamicsEndProfile: str
559
+ """Keyframe dynamics end profile, e.g. '1'"""
560
+ colorLuminanceMixerDefaultZero: str
561
+ """'0' or '1'"""
562
+ colorUseLegacyLogGrades: str
563
+ """'0', '1' or '2'"""
564
+ colorUseContrastSCurve: str
565
+ """'0' or '1'"""
566
+ colorUseStereoConvergenceForEffects: str
567
+ """'0' or '1'"""
568
+ colorUseLocalVersionsAsDefault: str
569
+ """'0' or '1'"""
570
+ colorUseBGRPixelOrderForDPX: str
571
+ """'0' or '1'"""
572
+ colorGalleryStillsLocation: str
573
+ """Gallery stills directory path"""
574
+ colorGalleryStillsNamingEnabled: str
575
+ """'0' or '1'"""
576
+ colorGalleryStillsNamingPattern: str
577
+ """Gallery stills naming pattern"""
578
+ colorGalleryStillsNamingCustomPattern: str
579
+ """Gallery stills custom naming pattern"""
580
+ colorGalleryStillsNamingWithStillNumber: str
581
+ """'0' or '1'"""
582
+ colorVersion1Name: str
583
+ """Name of color version 1"""
584
+ colorVersion2Name: str
585
+ """Name of color version 2"""
586
+ colorVersion3Name: str
587
+ """Name of color version 3"""
588
+ colorVersion4Name: str
589
+ """Name of color version 4"""
590
+ colorVersion5Name: str
591
+ """Name of color version 5"""
592
+ colorVersion6Name: str
593
+ """Name of color version 6"""
594
+ colorVersion7Name: str
595
+ """Name of color version 7"""
596
+ colorVersion8Name: str
597
+ """Name of color version 8"""
598
+ colorVersion9Name: str
599
+ """Name of color version 9"""
600
+ colorVersion10Name: str
601
+ """Name of color version 10"""
602
+ hdrMasteringOn: str
603
+ """'0' or '1'"""
604
+ hdrMasteringLuminanceMax: str
605
+ """Mastering luminance max in nits, e.g. '1000'"""
606
+ hdrDolbyControlsOn: str
607
+ """'0' or '1'"""
608
+ hdrDolbyVersion: str
609
+ """'2.9' or '4.0'"""
610
+ hdrDolbyAnalysisTuning: str
611
+ """'Legacy', 'Most Mapping', 'More Mapping', 'Balanced', 'Less Mapping' or 'Least Mapping'"""
612
+ hdrDolbyMasterDisplay: str
613
+ """Dolby Vision master display name"""
614
+ hdr10PlusControlsOn: str
615
+ """'0' or '1'"""
616
+ audioOutputHasTimecode: str
617
+ """'0' or '1'"""
618
+ videoMonitorFormat: str
619
+ """e.g. 'HD 1080i 50'"""
620
+ videoMonitorUseStereoSDI: str
621
+ """'0' or '1'"""
622
+ videoMonitorUse444SDI: str
623
+ """'0' or '1'"""
624
+ videoMonitorSDIConfiguration: str
625
+ """'single_link', 'dual_link' or 'quad_link'"""
626
+ videoDataLevels: str
627
+ """'Video' or 'Full'"""
628
+ videoDataLevelsRetainSubblockAndSuperWhiteData: str
629
+ """'0' or '1'"""
630
+ videoMonitorBitDepth: str
631
+ """e.g. '10'"""
632
+ videoMonitorScaling: str
633
+ """'basic' or 'bilinear'"""
634
+ videoMonitorUseHDROverHDMI: str
635
+ """'0' or '1'"""
636
+ videoMonitorUseMatrixOverrideFor422SDI: str
637
+ """'0' or '1'"""
638
+ videoMonitorMatrixOverrideFor422SDI: str
639
+ """'Rec.601', 'Rec.709' or 'Rec.2020'"""
640
+ videoDeckFormat: str
641
+ """Read-only. e.g. 'HD 1080i 50'"""
642
+ videoDeckUseStereoSDI: str
643
+ """'0' or '1'"""
644
+ videoMonitorUseLevelA: str
645
+ """'0' or '1'"""
646
+ videoDeckUse444SDI: str
647
+ """'0' or '1'"""
648
+ videoDeckSDIConfiguration: str
649
+ """'single_link', 'dual_link' or 'quad_link'"""
650
+ videoDeckBitDepth: str
651
+ """e.g. '10'"""
652
+ videoDeckUseAudoEdit: str
653
+ """'0' or '1'"""
654
+ videoDeckNonAutoEditFrames: str
655
+ """Number of frames, e.g. '30'"""
656
+ videoDeckPrerollSec: str
657
+ """Preroll in seconds, e.g. '5'"""
658
+ videoDeckOutputSyncSource: str
659
+ """Output sync source name"""
660
+ videoDeckAdd32Pulldown: str
661
+ """'0' or '1'"""
662
+ videoCaptureMode: str
663
+ """Capture mode, e.g. '0'"""
664
+ videoCaptureFormat: str
665
+ """Read-only. e.g. 'HD 1080i 50'"""
666
+ videoCaptureCodec: str
667
+ """Read-only. Capture codec name"""
668
+ videoCaptureIngestHandles: str
669
+ """Number of handle frames, e.g. '0'"""
670
+ audioCaptureNumChannels: str
671
+ """Number of audio channels, e.g. '2'"""
672
+ videoPlayoutMode: str
673
+ """Playout mode, e.g. '0'"""
674
+ videoPlayoutShowSourceTimecode: str
675
+ """'0' or '1'"""
676
+ videoPlayoutShowLTC: str
677
+ """'0' or '1'"""
678
+ videoPlayoutLTCFramesOffset: str
679
+ """LTC offset in frames, e.g. '0'"""
680
+ videoPlayoutAudioFramesOffset: str
681
+ """Audio offset in frames, e.g. '0'"""
682
+ audioPlayoutNumChannels: str
683
+ """Number of audio channels, e.g. '2'"""
684
+ videoPlayoutBatchHeadDuration: str
685
+ """Head duration in frames, e.g. '0'"""
686
+ videoPlayoutBatchTailDuration: str
687
+ """Tail duration in frames, e.g. '0'"""
688
+ limitBroadcastSafeOn: str
689
+ """'0' or '1'"""
690
+ limitBroadcastSafeLevels: str
691
+ """Broadcast safe levels, e.g. '-20 - 120'"""
692
+ limitAudioMeterLUFS: str
693
+ """Loudness standard, e.g. '-23'"""
694
+ limitAudioMeterLoudnessScale: str
695
+ """Loudness scale, e.g. '18_scale'"""
696
+ limitAudioMeterAlignLevel: str
697
+ """Align level in dB, e.g. '-20'"""
698
+ limitAudioMeterHighLevel: str
699
+ """High level in dB, e.g. '-10'"""
700
+ limitAudioMeterLowLevel: str
701
+ """Low level in dB, e.g. '-30'"""
702
+ limitAudioMeterDisplayMode: str
703
+ """Audio meter display mode"""
704
+ limitSubtitleCPL: str
705
+ """Max characters per line, e.g. '60'"""
706
+ limitSubtitleCaptionDurationSec: str
707
+ """Max caption duration in seconds, e.g. '3'"""
708
+ superScale: int
709
+ """0=Auto, 1=none, 2=2x, 3=3x, 4=4x"""
710
+ superScaleSharpness: str
711
+ """'0' or '1'"""
712
+ superScaleNoiseReduction: str
713
+ """'0' or '1'"""
714
+ superScaleSharpnessStrength: str
715
+ """Read-only. Sharpness strength, e.g. '0.5'"""
716
+ superScaleNoiseReductionStrength: str
717
+ """Read-only. Noise reduction strength, e.g. '0.5'"""
718
+ transcriptionLanguage: str
719
+ """Language code, e.g. 'en'"""
720
+ speakerDetection: str
721
+ """'0' or '1'"""
722
+ nodeStackLayers: str
723
+ """Number of node stack layers, e.g. '1'"""
724
+ cloudProjectMediaLocation: str
725
+ """Cloud project media directory path"""
726
+ projectMediaLocation: str
727
+ """Project media directory path"""
728
+
729
+ class ProjectSettingsPresetInfo(TypedDict, total=False):
730
+ Name: str
731
+ """Preset name"""
732
+ Width: int
733
+ """Resolution width, e.g. 1920"""
734
+ Height: int
735
+ """Resolution height, e.g. 1080"""
736
+
737
+ class QuickExportRenderSettings(TypedDict, total=False):
738
+ TargetDir: str
739
+ """Output directory path"""
740
+ CustomName: str
741
+ """Custom output filename"""
742
+ VideoQuality: int
743
+ """Bit rate limit (0 = automatic)"""
744
+ EnableUpload: bool
745
+ """Enable direct upload for supported web presets (default: False)"""
746
+
747
+ class QuickExportRenderStatus(TypedDict, total=False):
748
+ JobStatus: str
749
+ """'Render Complete', 'Render Failed', 'Render Cancelled', 'Upload Completed', 'Upload Failed' or 'Upload Cancelled'"""
750
+ CompletionPercentage: int
751
+ """Completion percentage"""
752
+ TimeTakenToRenderInMs: int
753
+ """Time taken to render (set on completion)"""
754
+ Error: str
755
+ """Error details (set on failure)"""
756
+
757
+ class RenderJobInfo(TypedDict, total=False):
758
+ JobId: str
759
+ """Unique job identifier"""
760
+ RenderJobName: str
761
+ """Job display name"""
762
+ TimelineName: str
763
+ """Source timeline name"""
764
+ TargetDir: str
765
+ """Output directory path"""
766
+ IsExportVideo: bool
767
+ """Video export enabled"""
768
+ IsExportAudio: bool
769
+ """Audio export enabled"""
770
+ FormatWidth: int
771
+ """Output width in pixels"""
772
+ FormatHeight: int
773
+ """Output height in pixels"""
774
+ FrameRate: str
775
+ """Frame rate, e.g. '23.976'"""
776
+ PixelAspectRatio: float
777
+ """Pixel aspect ratio"""
778
+ MarkIn: int
779
+ """Mark in frame"""
780
+ MarkOut: int
781
+ """Mark out frame"""
782
+ AudioBitDepth: int
783
+ """Audio bit depth, e.g. 16, 24"""
784
+ AudioSampleRate: int
785
+ """Audio sample rate, e.g. 48000"""
786
+ ExportAlpha: bool
787
+ """Alpha channel export enabled"""
788
+ AlphaMode: int
789
+ """0 = Premultiplied, 1 = Straight (set when ExportAlpha is True)"""
790
+ OutputFilename: str
791
+ """Output file name(s)"""
792
+ RenderMode: str
793
+ """'Single clip' or 'Individual clips'"""
794
+ PresetName: str
795
+ """Render preset name"""
796
+ VideoFormat: str
797
+ """Video format name, e.g. 'QuickTime'"""
798
+ VideoCodec: str
799
+ """Video codec name"""
800
+ AudioCodec: str
801
+ """Audio codec name"""
802
+ EncodingProfile: str
803
+ """Encoding profile, e.g. 'Main10'"""
804
+ MultiPassEncode: bool
805
+ """Multi-pass encoding enabled"""
806
+ NetworkOptimization: bool
807
+ """Network optimization enabled"""
808
+ UploadStatus: str
809
+ """Upload status (if applicable)"""
810
+ ClipStartFrame: int
811
+ """Clip start frame number"""
812
+ TimelineStartTimecode: str
813
+ """Timeline start timecode, e.g. '01:00:00:00'"""
814
+ ReplaceExistingFilesInPlace: bool
815
+ """Replace existing files in place"""
816
+
817
+ class RenderJobStatus(TypedDict, total=False):
818
+ JobStatus: str
819
+ """Current status, one of 'Ready', 'Ready for background render', 'Rendering', 'Complete', 'Cancelled', 'Background Render Cancelled', 'Failed', 'Ready to remotely render' or 'Remote Render Cancelled'"""
820
+ CompletionPercentage: int
821
+ """Completion percentage"""
822
+ TimeTakenToRenderInMs: int
823
+ """Time taken to complete render, set for 'Complete' jobs"""
824
+ EstimatedTimeRemainingInMs: int
825
+ """Time remaining to render, set for 'Rendering' jobs"""
826
+ Error: str
827
+ """Error details, set for 'Failed' jobs"""
828
+
829
+ class RenderSettings(TypedDict, total=False):
830
+ SelectAllFrames: bool
831
+ """Select all frames (MarkIn/MarkOut ignored when True)"""
832
+ MarkIn: int
833
+ """Render mark in frame"""
834
+ MarkOut: int
835
+ """Render mark out frame"""
836
+ TargetDir: str
837
+ """Output directory path"""
838
+ CustomName: str
839
+ """Custom output filename"""
840
+ UseUniqueFilenames: bool
841
+ """Enable unique filenames"""
842
+ UniqueFilenameStyle: int
843
+ """0 = Prefix, 1 = Suffix"""
844
+ ExportVideo: bool
845
+ """Enable video export"""
846
+ ExportAudio: bool
847
+ """Enable audio export"""
848
+ FormatWidth: int
849
+ """Output width in pixels"""
850
+ FormatHeight: int
851
+ """Output height in pixels"""
852
+ FrameRate: float
853
+ """Frame rate, e.g. 23.976, 24.0"""
854
+ PixelAspectRatio: str
855
+ """SD: '16_9' or '4_3'; other: 'square' or 'cinemascope'"""
856
+ VideoQuality: int | str
857
+ """0 = automatic, int > 0 = bit rate, or 'Least'/'Low'/'Medium'/'High'/'Best'"""
858
+ AudioFormat: str
859
+ """Audio format, e.g. 'mp3' (only if ExportVideo is False)"""
860
+ AudioCodec: str
861
+ """Audio codec, e.g. 'aac'"""
862
+ AudioBitDepth: int
863
+ """Audio bit depth, e.g. 16, 24"""
864
+ AudioSampleRate: int
865
+ """Audio sample rate, e.g. 48000"""
866
+ ColorSpaceTag: str
867
+ """Color space, e.g. 'Same as Project', 'AstroDesign'"""
868
+ GammaTag: str
869
+ """Gamma, e.g. 'Same as Project', 'ACEScct'"""
870
+ ExportAlpha: bool
871
+ """Enable alpha channel export"""
872
+ AlphaMode: int
873
+ """0 = Premultiplied, 1 = Straight (requires ExportAlpha True)"""
874
+ EncodingProfile: str
875
+ """Encoding profile, e.g. 'Main10' (H.264/H.265 only)"""
876
+ MultiPassEncode: bool
877
+ """Multi-pass encoding (H.264 only)"""
878
+ NetworkOptimization: bool
879
+ """Network optimization (QuickTime/MP4 only)"""
880
+ ClipStartFrame: int
881
+ """Clip start frame number"""
882
+ TimelineStartTimecode: str
883
+ """Timeline start timecode, e.g. '01:00:00:00'"""
884
+ ReplaceExistingFilesInPlace: bool
885
+ """Replace existing files in place"""
886
+ ExportSubtitle: bool
887
+ """Enable subtitle export"""
888
+ SubtitleFormat: str
889
+ """'BurnIn', 'EmbeddedCaptions' or 'SeparateFile'"""
890
+ UseFullExtents: bool
891
+ """Use full extents of clips"""
892
+ AddFrameHandles: int
893
+ """Frame handles count >= 0 (ignored if UseFullExtents is True)"""
894
+ DataBurnIn: str
895
+ """Data burn-in preset, e.g. 'Same as project', 'None'"""
896
+
897
+ class ResolutionInfo(TypedDict, total=False):
898
+ Width: int
899
+ """Resolution width in pixels"""
900
+ Height: int
901
+ """Resolution height in pixels"""
902
+
903
+ class SmartSwitchSettings(TypedDict, total=False):
904
+ minEditDuration: float
905
+ """Minimum edit duration in seconds, 0.5 to 10.0 (default: 1.0)"""
906
+ editChangeDelay: float
907
+ """Edit change delay in seconds, 0.0 to 2.0 (default: 0.3)"""
908
+ isAutoDetectWideAngle: bool
909
+ """Auto-detect wide angle from analysis (default: True)"""
910
+ analysisMode: SmartSwitchAnalysisMode
911
+ """Overrides isAutoDetectWideAngle"""
912
+ wideAngleID: str
913
+ """Wide angle name, or 'None' to disable (used when isAutoDetectWideAngle is False)"""
914
+ wideAngleFrequency: SmartSwitchWideAngleFrequency
915
+ """Default: resolve.SMART_SWITCH_WIDE_ANGLE_FREQ_MEDIUM"""
916
+ isUseWideAngleForIntroOutro: bool
917
+ """Use wide angle for intro/outro (default: True)"""
918
+ isUseWideAngleForSilence: bool
919
+ """Use wide angle for silence (default: True)"""
920
+ switchOnVideoOnly: bool
921
+ """Switch on video only, not supported in adaptive/source mode (default: False)"""
922
+ quality: SmartSwitchQuality
923
+ """Default: resolve.SMART_SWITCH_QUALITY_BETTER"""
924
+
925
+ class SpeechSettings(TypedDict, total=False):
926
+ TextInput: str
927
+ """Input text to synthesize (max 350 chars)"""
928
+ VoiceModel: str
929
+ """Voice model name, e.g. 'Female 1', 'Male 1', 'Custom Voice'"""
930
+ CustomVoiceFile: str
931
+ """Full path to custom voice file (required when VoiceModel is 'Custom Voice')"""
932
+ Speed: float
933
+ """Speed adjustment, -10.0 to 10.0"""
934
+ Variation: float
935
+ """Variation amount, 0.0 to 1.0"""
936
+ Pitch: float
937
+ """Pitch adjustment, -2.0 to 2.0"""
938
+ GenerationID: int
939
+ """Generation ID for reproducibility (> 0)"""
940
+ Filename: str
941
+ """Output filename"""
942
+ AddToTimeline: bool
943
+ """Add generated audio to timeline (default: False)"""
944
+ AudioTrack: int
945
+ """Target audio track number (0 = new track)"""
946
+
947
+ class SpeedOptions(TypedDict, total=False):
948
+ Percentage: float
949
+ """Speed in percentage, e.g. 110.0 (0.0 = freeze frame)"""
950
+ PitchCorrection: bool
951
+ """Pitch correction of linked audio (default: clip's existing state)"""
952
+ StretchKeyframesToFit: bool
953
+ """Stretch keyframes to fit (default: False)"""
954
+ RippleTimeline: bool
955
+ """Ripple timeline (default: False)"""
956
+
957
+ class TakeInfo(TypedDict, total=False):
958
+ startFrame: int
959
+ """Take start frame"""
960
+ endFrame: int
961
+ """Take end frame"""
962
+ mediaPoolItem: 'MediaPoolItem'
963
+ """Take media pool item"""
964
+
965
+ class ThumbnailData(TypedDict, total=False):
966
+ width: int
967
+ """Width in pixels"""
968
+ height: int
969
+ """Height in pixels"""
970
+ format: str
971
+ """Image format, e.g. 'RGB 8 bit'"""
972
+ data: str
973
+ """Base64-encoded image data"""
974
+
975
+ class TimelineItemProperties(TypedDict, total=False):
976
+ TransformEnabled: bool
977
+ """Enable/disable Transform filter section"""
978
+ Pan: float
979
+ """-4.0*width to 4.0*width"""
980
+ Tilt: float
981
+ """-4.0*height to 4.0*height"""
982
+ ZoomX: float
983
+ """0.0 to 100.0"""
984
+ ZoomY: float
985
+ """0.0 to 100.0"""
986
+ ZoomGang: bool
987
+ """Gang ZoomX and ZoomY"""
988
+ RotationAngle: float
989
+ """-360.0 to 360.0"""
990
+ AnchorPointX: float
991
+ """-4.0*width to 4.0*width"""
992
+ AnchorPointY: float
993
+ """-4.0*height to 4.0*height"""
994
+ Pitch: float
995
+ """-1.5 to 1.5"""
996
+ Yaw: float
997
+ """-1.5 to 1.5"""
998
+ FlipX: bool
999
+ """Flip horizontally"""
1000
+ FlipY: bool
1001
+ """Flip vertically"""
1002
+ CroppingEnabled: bool
1003
+ """Enable/disable Cropping filter section"""
1004
+ CropLeft: float
1005
+ """0.0 to width"""
1006
+ CropRight: float
1007
+ """0.0 to width"""
1008
+ CropTop: float
1009
+ """0.0 to height"""
1010
+ CropBottom: float
1011
+ """0.0 to height"""
1012
+ CropSoftness: float
1013
+ """-100.0 to 100.0"""
1014
+ CropRetain: bool
1015
+ """Retain Image Position"""
1016
+ DynamicZoomEnabled: bool
1017
+ """Enable/disable Dynamic Zoom filter section"""
1018
+ DynamicZoomEase: DynamicZoomEase
1019
+ CompositeEnabled: bool
1020
+ """Enable/disable Composite filter section"""
1021
+ CompositeMode: CompositeMode
1022
+ """See README.md section 'Looking up Timeline item properties'."""
1023
+ Opacity: float
1024
+ """0.0 to 100.0"""
1025
+ LensCorrectionEnabled: bool
1026
+ """Enable/disable Lens Correction filter section"""
1027
+ Distortion: float
1028
+ """-1.0 to 1.0"""
1029
+ RetimeAndScalingEnabled: bool
1030
+ """Enable/disable Retime and Scaling filter section"""
1031
+ RetimeProcess: RetimeProcess
1032
+ MotionEstimation: MotionEstimation
1033
+ Scaling: Scaling
1034
+ ResizeFilter: ResizeFilter
1035
+ AudioVolumeEnabled: bool
1036
+ """Enable/disable audio volume filter"""
1037
+ AudioVolume: float
1038
+ """-100.0 to 30.0 (dB)"""
1039
+ AudioPanEnabled: bool
1040
+ """Enable/disable audio pan filter"""
1041
+ AudioPan: float
1042
+ """-100.0 to 100.0"""
1043
+ AudioPitchEnabled: bool
1044
+ """Enable/disable audio pitch filter"""
1045
+ AudioPitchSemiTones: float
1046
+ """-24.0 to 24.0"""
1047
+ AudioPitchCents: float
1048
+ """-100.0 to 100.0"""
1049
+ AudioVoiceIsolationEnabled: bool
1050
+ """Enable/disable Voice Isolation [Active Timeline Only]"""
1051
+ AudioVoiceIsolationAmount: int
1052
+ """0 to 100 (isolation strength) [Active Timeline Only]"""
1053
+ AudioDialogueLevelerEnabled: bool
1054
+ """Enable/disable Dialogue Leveler [Active Timeline Only]"""
1055
+ AudioDialogueLevelerMode: DialogueLevelerMode
1056
+ """[Active Timeline Only]"""
1057
+ AudioDialogueLevelerReduceLoudDialogue: bool
1058
+ """Reduce loud dialogue [Active Timeline Only]"""
1059
+ AudioDialogueLevelerLiftSoftDialogue: bool
1060
+ """Lift soft dialogue [Active Timeline Only]"""
1061
+ AudioDialogueLevelerBackgroundReduction: bool
1062
+ """Enable background reduction [Active Timeline Only]"""
1063
+ AudioDialogueLevelerOutputGain: float
1064
+ """0.0 to 6.0 (dB) [Active Timeline Only]"""
1065
+
1066
+ class TimelineSettings(TypedDict, total=False):
1067
+ useCustomSettings: str
1068
+ """'0' or '1'"""
1069
+ timelineResolutionWidth: str
1070
+ """e.g. '1920'"""
1071
+ timelineResolutionHeight: str
1072
+ """e.g. '1080'"""
1073
+ timelinePixelAspectRatio: str
1074
+ """e.g. 'square'"""
1075
+ timelineInputResMismatchBehavior: str
1076
+ """e.g. 'scaleToCrop'"""
1077
+ timelineFrameRate: float | str
1078
+ """Returned as a number, e.g. 23.976. Set as a string, e.g. '23.976' or '29.97 DF'"""
1079
+ timelineDropFrameTimecode: str
1080
+ """'0' or '1'"""
1081
+ timelineInterlaceProcessing: str
1082
+ """'0' or '1'"""
1083
+ timelineOutputResMatchTimelineRes: str
1084
+ """'0' or '1'"""
1085
+ timelineOutputResolutionWidth: str
1086
+ """e.g. '1920'"""
1087
+ timelineOutputResolutionHeight: str
1088
+ """e.g. '1080'"""
1089
+ timelineOutputPixelAspectRatio: str
1090
+ """e.g. 'square'"""
1091
+ timelineOutputResMismatchBehavior: str
1092
+ """e.g. 'scaleToCrop'"""
1093
+ superScale: int
1094
+ """0=Auto, 1=none, 2=2x, 3=3x, 4=4x"""
1095
+ videoMonitorFormat: str
1096
+ """e.g. 'HD 1080i 50'"""
1097
+ videoMonitorUse444SDI: str
1098
+ """'0' or '1'"""
1099
+ videoMonitorUseLevelA: str
1100
+ """'0' or '1'"""
1101
+ videoMonitorUseStereoSDI: str
1102
+ """'0' or '1'"""
1103
+ videoMonitorSDIConfiguration: str
1104
+ """SDI config string"""
1105
+ videoDataLevels: str
1106
+ """e.g. 'Auto'"""
1107
+ videoDataLevelsRetainSubblockAndSuperWhiteData: str
1108
+ """'0' or '1'"""
1109
+ videoMonitorBitDepth: str
1110
+ """e.g. '10'"""
1111
+ videoMonitorScaling: str
1112
+ """e.g. 'bilinear'"""
1113
+ videoMonitorUseHDROverHDMI: str
1114
+ """'0' or '1'"""
1115
+ videoMonitorUseMatrixOverrideFor422SDI: str
1116
+ """'0' or '1'"""
1117
+ videoMonitorMatrixOverrideFor422SDI: str
1118
+ """Matrix override value"""
1119
+ colorScienceMode: str
1120
+ """e.g. 'davinciYRGBColorManagedv2'"""
1121
+ acesVersion: str
1122
+ """e.g. 'aces_1.3'"""
1123
+ isAutoColorManage: str
1124
+ """'0' or '1'"""
1125
+ rcmPresetMode: str
1126
+ """Preset mode string"""
1127
+ separateColorSpaceAndGamma: str
1128
+ """'0' or '1'"""
1129
+ colorSpaceTimeline: str
1130
+ """e.g. 'Rec.709'"""
1131
+ colorSpaceTimelineGamma: str
1132
+ """e.g. 'Gamma 2.4'"""
1133
+ colorAcesGamutCompressType: str
1134
+ """Gamut compress type"""
1135
+ colorAcesODT: str
1136
+ """ACES Output Device Transform"""
1137
+ colorAcesMidGray: str
1138
+ """Mid gray value"""
1139
+ colorSpaceOutput: str
1140
+ """Output color space"""
1141
+ colorSpaceOutputGamma: str
1142
+ """Output gamma"""
1143
+ use203NitsReference: str
1144
+ """'0' or '1'"""
1145
+ colorSpaceOutputGamutLimit: str
1146
+ """Clipping color space"""
1147
+ colorAcesNodeLUTProcessingSpace: str
1148
+ """Node LUT processing space"""
1149
+ hdrMasteringOn: str
1150
+ """'0' or '1'"""
1151
+ hdrMasteringLuminanceMax: str
1152
+ """Max luminance value"""
1153
+ outputDRT: str
1154
+ """Output DRT string"""
1155
+ colorSpaceOutputToneMapping: str
1156
+ """Tone mapping mode"""
1157
+ colorSpaceOutputGamutMapping: str
1158
+ """Gamut mapping mode"""
1159
+ colorSpaceOutputGamutSaturationKnee: str
1160
+ """Saturation knee value"""
1161
+ colorSpaceOutputGamutSaturationMax: str
1162
+ """Saturation max value"""
1163
+ useInverseDRT: str
1164
+ """'0' or '1'"""
1165
+ colorSpaceOutputToneLuminanceMax: str
1166
+ """Tone luminance max"""
1167
+ outputDRTSatRolloffStart: str
1168
+ """Saturation rolloff start"""
1169
+ outputDRTSatRolloffLimit: str
1170
+ """Saturation rolloff limit"""
1171
+ inputDRT: str
1172
+ """Input DRT string"""
1173
+ inputDRTSatRolloffStart: str
1174
+ """Input saturation rolloff start"""
1175
+ inputDRTSatRolloffLimit: str
1176
+ """Input saturation rolloff limit"""
1177
+ useCATransform: str
1178
+ """'0' or '1'"""
1179
+ useColorSpaceAwareGradingTools: str
1180
+ """'0' or '1'"""
1181
+ imageResizingGamma: str
1182
+ """Image resizing gamma"""
1183
+ graphicsWhiteLevel: str
1184
+ """Graphics white level"""
1185
+ timelineWorkingLuminance: str
1186
+ """Working luminance value"""
1187
+ timelineWorkingLuminanceMode: str
1188
+ """Working luminance mode"""
1189
+ hdrDolbyControlsOn: str
1190
+ """'0' or '1'"""
1191
+ hdrDolbyVersion: str
1192
+ """Dolby Vision version"""
1193
+ hdrDolbyMasterDisplay: str
1194
+ """Dolby Vision master display"""
1195
+ hdrDolbyUseExternalCMU: str
1196
+ """'0' or '1'"""
1197
+ hdr10PlusControlsOn: str
1198
+ """'0' or '1'"""
1199
+ hdrVividControlsOn: str
1200
+ """'0' or '1'"""
1201
+ hdrVividMasterDisplay: str
1202
+ """HDR Vivid master display"""
1203
+ disableFusionToneMapping: str
1204
+ """'0' or '1'"""
1205
+
1206
+ class Transcription(TypedDict, total=False):
1207
+ language: str
1208
+ """Transcription language code"""
1209
+ segments: list[TranscriptionSegment]
1210
+ """List of transcription segments"""
1211
+
1212
+ class TranscriptionSegment(TypedDict, total=False):
1213
+ start: str
1214
+ """Start timecode, e.g. '01:00:02:05'"""
1215
+ end: str
1216
+ """End timecode, e.g. '01:00:04:10'"""
1217
+ text: str
1218
+ """Concatenated text of all words in segment; '(...)' denotes silence"""
1219
+ speaker: str | None
1220
+ """Speaker name if detected, None otherwise"""
1221
+ words: list[TranscriptionWord]
1222
+ """Individual words with timing"""
1223
+
1224
+ class TranscriptionWord(TypedDict, total=False):
1225
+ start: str
1226
+ """Start timecode"""
1227
+ end: str
1228
+ """End timecode"""
1229
+ text: str
1230
+ """Word text; '(...)' denotes silence"""
1231
+
1232
+ class TransitionOptions(TypedDict, total=False):
1233
+ type: str
1234
+ """Transition type name, e.g. 'Cross Dissolve'"""
1235
+ category: str
1236
+ """Transition category: 'simple', 'fusion', 'ofx' or 'audio'"""
1237
+ position: str
1238
+ """Edge of the item to attach the transition to: 'start' or 'end'"""
1239
+ alignment: str
1240
+ """Placement relative to the edge: 'left', 'center' or 'right'"""
1241
+ duration: int | None
1242
+ """Duration in frames (default: automatically calculated)"""
1243
+
1244
+ class VersionInfo(TypedDict, total=False):
1245
+ versionName: str
1246
+ """Version name"""
1247
+ versionType: int
1248
+ """Version type, 0 = local, 1 = remote"""
1249
+
1250
+ class VoiceIsolationState(TypedDict, total=False):
1251
+ isEnabled: bool
1252
+ """Enabled flag"""
1253
+ amount: int
1254
+ """Amount in range [0, 100]"""
1255
+
1256
+ class Resolve:
1257
+ """The Resolve application: pages, the current project and application-wide presets."""
1258
+ KEYFRAME_MODE_ALL: KeyframeMode
1259
+ KEYFRAME_MODE_COLOR: KeyframeMode
1260
+ KEYFRAME_MODE_SIZING: KeyframeMode
1261
+ CLOUD_SETTING_PROJECT_NAME: CloudSettingKey
1262
+ CLOUD_SETTING_PROJECT_MEDIA_PATH: CloudSettingKey
1263
+ CLOUD_SETTING_IS_COLLAB: CloudSettingKey
1264
+ CLOUD_SETTING_SYNC_MODE: CloudSettingKey
1265
+ CLOUD_SETTING_IS_CAMERA_ACCESS: CloudSettingKey
1266
+ CLOUD_SYNC_NONE: CloudSyncMode
1267
+ CLOUD_SYNC_PROXY_ONLY: CloudSyncMode
1268
+ CLOUD_SYNC_PROXY_AND_ORIG: CloudSyncMode
1269
+ AUDIO_SYNC_MODE: AudioSyncSettingKey
1270
+ AUDIO_SYNC_CHANNEL_NUMBER: AudioSyncSettingKey
1271
+ AUDIO_SYNC_RETAIN_EMBEDDED_AUDIO: AudioSyncSettingKey
1272
+ AUDIO_SYNC_RETAIN_VIDEO_METADATA: AudioSyncSettingKey
1273
+ AUDIO_SYNC_WAVEFORM: AudioSyncMode
1274
+ AUDIO_SYNC_TIMECODE: AudioSyncMode
1275
+ AUDIO_SYNC_IN: AudioSyncMode
1276
+ AUDIO_SYNC_OUT: AudioSyncMode
1277
+ AUDIO_SYNC_MARKER: AudioSyncMode
1278
+ AUDIO_SYNC_CHANNEL_AUTOMATIC: AudioSyncChannel
1279
+ AUDIO_SYNC_CHANNEL_MIX: AudioSyncChannel
1280
+ MULTICAM_ANGLE_SYNC_IN: MulticamAngleSyncMode
1281
+ MULTICAM_ANGLE_SYNC_OUT: MulticamAngleSyncMode
1282
+ MULTICAM_ANGLE_SYNC_TIMECODE: MulticamAngleSyncMode
1283
+ MULTICAM_ANGLE_SYNC_AUDIO: MulticamAngleSyncMode
1284
+ MULTICAM_ANGLE_SYNC_MARKER: MulticamAngleSyncMode
1285
+ MULTICAM_ANGLE_NAME_SEQUENTIAL: MulticamAngleNameMode
1286
+ MULTICAM_ANGLE_NAME_ANGLE: MulticamAngleNameMode
1287
+ MULTICAM_ANGLE_NAME_CAMERA: MulticamAngleNameMode
1288
+ MULTICAM_ANGLE_NAME_CLIP: MulticamAngleNameMode
1289
+ MULTICAM_ANGLE_NAME_FILE: MulticamAngleNameMode
1290
+ MULTICAM_DETECT_BY_CAMERA_NUMBER: MulticamDetectMode
1291
+ MULTICAM_DETECT_BY_ANGLE: MulticamDetectMode
1292
+ MULTICAM_DETECT_BY_REEL_NUMBER: MulticamDetectMode
1293
+ MULTICAM_DETECT_BY_REEL_NAME: MulticamDetectMode
1294
+ MULTICAM_DETECT_BY_ROLL_CARD: MulticamDetectMode
1295
+ MULTICAM_DETECT_NONE: MulticamDetectMode
1296
+ MULTICAM_AUDIO_ADAPTIVE: MulticamAudioMode
1297
+ MULTICAM_AUDIO_SOURCE: MulticamAudioMode
1298
+ MULTICAM_AUDIO_REFERENCE: MulticamAudioMode
1299
+ MULTICAM_AUDIO_ALL: MulticamAudioMode
1300
+ CLOUD_SYNC_DEFAULT: CloudSyncStatus
1301
+ CLOUD_SYNC_DOWNLOAD_IN_QUEUE: CloudSyncStatus
1302
+ CLOUD_SYNC_DOWNLOAD_IN_PROGRESS: CloudSyncStatus
1303
+ CLOUD_SYNC_DOWNLOAD_SUCCESS: CloudSyncStatus
1304
+ CLOUD_SYNC_DOWNLOAD_FAIL: CloudSyncStatus
1305
+ CLOUD_SYNC_DOWNLOAD_NOT_FOUND: CloudSyncStatus
1306
+ CLOUD_SYNC_UPLOAD_IN_QUEUE: CloudSyncStatus
1307
+ CLOUD_SYNC_UPLOAD_IN_PROGRESS: CloudSyncStatus
1308
+ CLOUD_SYNC_UPLOAD_SUCCESS: CloudSyncStatus
1309
+ CLOUD_SYNC_UPLOAD_FAIL: CloudSyncStatus
1310
+ CLOUD_SYNC_UPLOAD_NOT_FOUND: CloudSyncStatus
1311
+ CLOUD_SYNC_SUCCESS: CloudSyncStatus
1312
+ MARKER_NONE: SlateMarkerColor
1313
+ MARKER_BLUE: SlateMarkerColor
1314
+ MARKER_CYAN: SlateMarkerColor
1315
+ MARKER_GREEN: SlateMarkerColor
1316
+ MARKER_YELLOW: SlateMarkerColor
1317
+ MARKER_RED: SlateMarkerColor
1318
+ MARKER_PINK: SlateMarkerColor
1319
+ MARKER_PURPLE: SlateMarkerColor
1320
+ MARKER_FUCHSIA: SlateMarkerColor
1321
+ MARKER_ROSE: SlateMarkerColor
1322
+ MARKER_LAVENDER: SlateMarkerColor
1323
+ MARKER_SKY: SlateMarkerColor
1324
+ MARKER_MINT: SlateMarkerColor
1325
+ MARKER_LEMON: SlateMarkerColor
1326
+ MARKER_SAND: SlateMarkerColor
1327
+ MARKER_COCOA: SlateMarkerColor
1328
+ MARKER_CREAM: SlateMarkerColor
1329
+ NORMALIZE_AUDIO_SET_LEVEL_RELATIVE: NormalizeAudioSetLevelMode
1330
+ NORMALIZE_AUDIO_SET_LEVEL_INDEPENDENT: NormalizeAudioSetLevelMode
1331
+ AUTO_ALIGN_CLIPS_USING_WAVEFORM: AutoAlignSyncUsing
1332
+ AUTO_ALIGN_CLIPS_USING_TIMECODE: AutoAlignSyncUsing
1333
+ AUTO_ALIGN_CLIPS_WAVEFORM_TRACK_MIX: AutoAlignUseTrack
1334
+ AUTO_ALIGN_CLIPS_WAVEFORM_TRACK_AUTOMATIC: AutoAlignUseTrack
1335
+ EXPORT_AAF: TimelineExportType
1336
+ EXPORT_DRT: TimelineExportType
1337
+ EXPORT_EDL: TimelineExportType
1338
+ EXPORT_FCP_7_XML: TimelineExportType
1339
+ EXPORT_FCPXML_1_8: TimelineExportType
1340
+ EXPORT_FCPXML_1_9: TimelineExportType
1341
+ EXPORT_FCPXML_1_10: TimelineExportType
1342
+ EXPORT_HDR_10_PROFILE_A: TimelineExportType
1343
+ EXPORT_HDR_10_PROFILE_B: TimelineExportType
1344
+ EXPORT_TEXT_CSV: TimelineExportType
1345
+ EXPORT_TEXT_TAB: TimelineExportType
1346
+ EXPORT_DOLBY_VISION_VER_2_9: TimelineExportType
1347
+ EXPORT_DOLBY_VISION_VER_4_0: TimelineExportType
1348
+ EXPORT_DOLBY_VISION_VER_5_1: TimelineExportType
1349
+ EXPORT_OTIO: TimelineExportType
1350
+ EXPORT_ALE: TimelineExportType
1351
+ EXPORT_ALE_CDL: TimelineExportType
1352
+ EXPORT_NONE: TimelineExportSubtype
1353
+ EXPORT_AAF_NEW: TimelineExportSubtype
1354
+ EXPORT_AAF_EXISTING: TimelineExportSubtype
1355
+ EXPORT_CDL: TimelineExportSubtype
1356
+ EXPORT_SDL: TimelineExportSubtype
1357
+ EXPORT_MISSING_CLIPS: TimelineExportSubtype
1358
+ SUBTITLE_LANGUAGE: SubtitleSettingKey
1359
+ SUBTITLE_CAPTION_PRESET: SubtitleSettingKey
1360
+ SUBTITLE_CHARS_PER_LINE: SubtitleSettingKey
1361
+ SUBTITLE_LINE_BREAK: SubtitleSettingKey
1362
+ SUBTITLE_GAP: SubtitleSettingKey
1363
+ AUTO_CAPTION_AUTO: AutoCaptionLanguage
1364
+ AUTO_CAPTION_MANDARIN_SIMPLIFIED: AutoCaptionLanguage
1365
+ AUTO_CAPTION_DUTCH: AutoCaptionLanguage
1366
+ AUTO_CAPTION_ENGLISH: AutoCaptionLanguage
1367
+ AUTO_CAPTION_FINNISH: AutoCaptionLanguage
1368
+ AUTO_CAPTION_FRENCH: AutoCaptionLanguage
1369
+ AUTO_CAPTION_GERMAN: AutoCaptionLanguage
1370
+ AUTO_CAPTION_HINDI: AutoCaptionLanguage
1371
+ AUTO_CAPTION_INDONESIAN: AutoCaptionLanguage
1372
+ AUTO_CAPTION_ITALIAN: AutoCaptionLanguage
1373
+ AUTO_CAPTION_JAPANESE: AutoCaptionLanguage
1374
+ AUTO_CAPTION_KOREAN: AutoCaptionLanguage
1375
+ AUTO_CAPTION_MALAY: AutoCaptionLanguage
1376
+ AUTO_CAPTION_NORWEGIAN: AutoCaptionLanguage
1377
+ AUTO_CAPTION_POLISH: AutoCaptionLanguage
1378
+ AUTO_CAPTION_PORTUGUESE: AutoCaptionLanguage
1379
+ AUTO_CAPTION_ROMANIAN: AutoCaptionLanguage
1380
+ AUTO_CAPTION_RUSSIAN: AutoCaptionLanguage
1381
+ AUTO_CAPTION_SPANISH: AutoCaptionLanguage
1382
+ AUTO_CAPTION_SWEDISH: AutoCaptionLanguage
1383
+ AUTO_CAPTION_TURKISH: AutoCaptionLanguage
1384
+ AUTO_CAPTION_VIETNAMESE: AutoCaptionLanguage
1385
+ AUTO_CAPTION_TAMIL: AutoCaptionLanguage
1386
+ AUTO_CAPTION_THAI: AutoCaptionLanguage
1387
+ AUTO_CAPTION_DANISH: AutoCaptionLanguage
1388
+ AUTO_CAPTION_MANDARIN_TRADITIONAL: AutoCaptionLanguage
1389
+ AUTO_CAPTION_SUBTITLE_DEFAULT: AutoCaptionPreset
1390
+ AUTO_CAPTION_TELETEXT: AutoCaptionPreset
1391
+ AUTO_CAPTION_NETFLIX: AutoCaptionPreset
1392
+ AUTO_CAPTION_LINE_SINGLE: AutoCaptionLineBreak
1393
+ AUTO_CAPTION_LINE_DOUBLE: AutoCaptionLineBreak
1394
+ DLB_BLEND_SHOTS: DolbyVisionAnalysisType
1395
+ DYNAMIC_ZOOM_EASE_LINEAR: DynamicZoomEase
1396
+ DYNAMIC_ZOOM_EASE_IN: DynamicZoomEase
1397
+ DYNAMIC_ZOOM_EASE_OUT: DynamicZoomEase
1398
+ DYNAMIC_ZOOM_EASE_IN_AND_OUT: DynamicZoomEase
1399
+ COMPOSITE_NORMAL: CompositeMode
1400
+ COMPOSITE_ADD: CompositeMode
1401
+ COMPOSITE_SUBTRACT: CompositeMode
1402
+ COMPOSITE_DIFF: CompositeMode
1403
+ COMPOSITE_MULTIPLY: CompositeMode
1404
+ COMPOSITE_SCREEN: CompositeMode
1405
+ COMPOSITE_OVERLAY: CompositeMode
1406
+ COMPOSITE_HARDLIGHT: CompositeMode
1407
+ COMPOSITE_SOFTLIGHT: CompositeMode
1408
+ COMPOSITE_DARKEN: CompositeMode
1409
+ COMPOSITE_LIGHTEN: CompositeMode
1410
+ COMPOSITE_COLOR_DODGE: CompositeMode
1411
+ COMPOSITE_COLOR_BURN: CompositeMode
1412
+ COMPOSITE_EXCLUSION: CompositeMode
1413
+ COMPOSITE_HUE: CompositeMode
1414
+ COMPOSITE_SATURATE: CompositeMode
1415
+ COMPOSITE_COLORIZE: CompositeMode
1416
+ COMPOSITE_LUMA_MASK: CompositeMode
1417
+ COMPOSITE_DIVIDE: CompositeMode
1418
+ COMPOSITE_LINEAR_DODGE: CompositeMode
1419
+ COMPOSITE_LINEAR_BURN: CompositeMode
1420
+ COMPOSITE_LINEAR_LIGHT: CompositeMode
1421
+ COMPOSITE_VIVID_LIGHT: CompositeMode
1422
+ COMPOSITE_PIN_LIGHT: CompositeMode
1423
+ COMPOSITE_HARD_MIX: CompositeMode
1424
+ COMPOSITE_LIGHTER_COLOR: CompositeMode
1425
+ COMPOSITE_DARKER_COLOR: CompositeMode
1426
+ COMPOSITE_FOREGROUND: CompositeMode
1427
+ COMPOSITE_ALPHA: CompositeMode
1428
+ COMPOSITE_INVERTED_ALPHA: CompositeMode
1429
+ COMPOSITE_LUM: CompositeMode
1430
+ COMPOSITE_INVERTED_LUM: CompositeMode
1431
+ RETIME_USE_PROJECT: RetimeProcess
1432
+ RETIME_NEAREST: RetimeProcess
1433
+ RETIME_FRAME_BLEND: RetimeProcess
1434
+ RETIME_OPTICAL_FLOW: RetimeProcess
1435
+ MOTION_EST_USE_PROJECT: MotionEstimation
1436
+ MOTION_EST_STANDARD_FASTER: MotionEstimation
1437
+ MOTION_EST_STANDARD_BETTER: MotionEstimation
1438
+ MOTION_EST_ENHANCED_FASTER: MotionEstimation
1439
+ MOTION_EST_ENHANCED_BETTER: MotionEstimation
1440
+ MOTION_EST_SPEED_WARP_FASTER: MotionEstimation
1441
+ MOTION_EST_SPEED_WARP_BETTER: MotionEstimation
1442
+ MOTION_EST_METAL: MotionEstimation
1443
+ SCALE_USE_PROJECT: Scaling
1444
+ SCALE_CROP: Scaling
1445
+ SCALE_FIT: Scaling
1446
+ SCALE_FILL: Scaling
1447
+ SCALE_STRETCH: Scaling
1448
+ RESIZE_FILTER_USE_PROJECT: ResizeFilter
1449
+ RESIZE_FILTER_SHARPER: ResizeFilter
1450
+ RESIZE_FILTER_SMOOTHER: ResizeFilter
1451
+ RESIZE_FILTER_BICUBIC: ResizeFilter
1452
+ RESIZE_FILTER_BILINEAR: ResizeFilter
1453
+ RESIZE_FILTER_BESSEL: ResizeFilter
1454
+ RESIZE_FILTER_BOX: ResizeFilter
1455
+ RESIZE_FILTER_CATMULL_ROM: ResizeFilter
1456
+ RESIZE_FILTER_CUBIC: ResizeFilter
1457
+ RESIZE_FILTER_GAUSSIAN: ResizeFilter
1458
+ RESIZE_FILTER_LANCZOS: ResizeFilter
1459
+ RESIZE_FILTER_MITCHELL: ResizeFilter
1460
+ RESIZE_FILTER_NEAREST_NEIGHBOR: ResizeFilter
1461
+ RESIZE_FILTER_QUADRATIC: ResizeFilter
1462
+ RESIZE_FILTER_SINC: ResizeFilter
1463
+ RESIZE_FILTER_LINEAR: ResizeFilter
1464
+ CACHE_AUTO_ENABLED: CacheMode
1465
+ CACHE_DISABLED: CacheMode
1466
+ CACHE_ENABLED: CacheMode
1467
+ DIALOGUE_LEVELER_MODE_ALLOW_WIDER_DYNAMICS: DialogueLevelerMode
1468
+ DIALOGUE_LEVELER_MODE_OPTIMIZE_MODERATE_LEVELS: DialogueLevelerMode
1469
+ DIALOGUE_LEVELER_MODE_MORE_LIFT_FOR_LOW_LEVELS: DialogueLevelerMode
1470
+ DIALOGUE_LEVELER_MODE_LIFT_SOFT_WHISPERY_SOURCES: DialogueLevelerMode
1471
+ FLATTEN_MULTICAM_COPY_GRADE: FlattenMulticamGrade
1472
+ FLATTEN_MULTICAM_RETAIN_GRADE_FROM_ANGLE: FlattenMulticamGrade
1473
+ EXPORT_LUT_17PTCUBE: ExportLutType
1474
+ EXPORT_LUT_33PTCUBE: ExportLutType
1475
+ EXPORT_LUT_65PTCUBE: ExportLutType
1476
+ EXPORT_LUT_PANASONICVLUT: ExportLutType
1477
+ SMART_SWITCH_QUALITY_FASTER: SmartSwitchQuality
1478
+ SMART_SWITCH_QUALITY_BETTER: SmartSwitchQuality
1479
+ SMART_SWITCH_WIDE_ANGLE_FREQ_LOW: SmartSwitchWideAngleFrequency
1480
+ SMART_SWITCH_WIDE_ANGLE_FREQ_MEDIUM: SmartSwitchWideAngleFrequency
1481
+ SMART_SWITCH_WIDE_ANGLE_FREQ_HIGH: SmartSwitchWideAngleFrequency
1482
+ SMART_SWITCH_ANALYSIS_MODE_NONE: SmartSwitchAnalysisMode
1483
+ SMART_SWITCH_ANALYSIS_MODE_DETECT_WIDE_ANGLE: SmartSwitchAnalysisMode
1484
+ SMART_SWITCH_ANALYSIS_MODE_AUDIO_ONLY: SmartSwitchAnalysisMode
1485
+ CLONE_CHECKSUM_TYPE_NONE: CloneChecksumType
1486
+ CLONE_CHECKSUM_TYPE_FILESIZE: CloneChecksumType
1487
+ CLONE_CHECKSUM_TYPE_CRC32: CloneChecksumType
1488
+ CLONE_CHECKSUM_TYPE_MD5: CloneChecksumType
1489
+ CLONE_CHECKSUM_TYPE_SHA256: CloneChecksumType
1490
+ CLONE_CHECKSUM_TYPE_SHA512: CloneChecksumType
1491
+ CLONE_CHECKSUM_TYPE_XXH_64: CloneChecksumType
1492
+ def GetProjectManager(self) -> ProjectManager:
1493
+ """Returns the project manager object for currently open database"""
1494
+ ...
1495
+ def GetMediaStorage(self) -> MediaStorage:
1496
+ """Returns the media storage object to query and act on media locations"""
1497
+ ...
1498
+ def Fusion(self) -> Fusion:
1499
+ """Starting point for Fusion scripts"""
1500
+ ...
1501
+ def GetCurrentProject(self) -> Project:
1502
+ """Returns the currently loaded Resolve project"""
1503
+ ...
1504
+ def GetCurrentTimeline(self) -> Timeline:
1505
+ """Returns the currently loaded timeline"""
1506
+ ...
1507
+ def GetMediaPool(self) -> MediaPool:
1508
+ """Returns the MediaPool object for the current project"""
1509
+ ...
1510
+ def GetGallery(self) -> Gallery:
1511
+ """Returns the Gallery object for the current project"""
1512
+ ...
1513
+ def OpenPage(self, pageName: str) -> bool:
1514
+ """Switches DaVinci Resolve Page. pageName can be: 'media', 'photo', 'cut', 'edit', 'fusion', 'color', 'fairlight', 'deliver'"""
1515
+ ...
1516
+ def GetCurrentPage(self) -> str:
1517
+ """Returns current DaVinci Resolve Page: 'media', 'photo', 'cut', 'edit', 'fusion', 'color', 'fairlight', 'deliver'"""
1518
+ ...
1519
+ def SetHighPriority(self, highPriority: bool) -> bool:
1520
+ """Sets the script execution priority to high or normal"""
1521
+ ...
1522
+ def GetVersion(self) -> list[int | str]:
1523
+ """Returns list of product version fields in [major, minor, patch, build, suffix] format"""
1524
+ ...
1525
+ def GetVersionString(self) -> str:
1526
+ """Returns product version in major.minor.patch[suffix].build format"""
1527
+ ...
1528
+ def GetProductName(self) -> str:
1529
+ """Returns product name"""
1530
+ ...
1531
+ def IsStudio(self) -> bool:
1532
+ """Returns whether this is the Studio version of the product"""
1533
+ ...
1534
+ def GetLayoutPresetList(self) -> list[str]:
1535
+ """Returns a list of available UI layout preset names"""
1536
+ ...
1537
+ def LoadLayoutPreset(self, presetName: str) -> bool:
1538
+ """Loads UI layout from saved preset"""
1539
+ ...
1540
+ def UpdateLayoutPreset(self, presetName: str) -> bool:
1541
+ """Overwrites preset named 'presetName' with current UI layout"""
1542
+ ...
1543
+ def ExportLayoutPreset(self, presetName: str, presetFilePath: str) -> bool:
1544
+ """Exports preset named 'presetName' to path 'presetFilePath'"""
1545
+ ...
1546
+ def DeleteLayoutPreset(self, presetName: str) -> bool:
1547
+ """Deletes preset named 'presetName'"""
1548
+ ...
1549
+ def SaveLayoutPreset(self, presetName: str) -> bool:
1550
+ """Saves current UI layout as a preset"""
1551
+ ...
1552
+ def ImportLayoutPreset(self, presetFilePath: str, presetName: str | None = None) -> bool:
1553
+ """Imports UI layout preset from file"""
1554
+ ...
1555
+ def Quit(self) -> bool:
1556
+ """Quits the Resolve App"""
1557
+ ...
1558
+ def ImportRenderPreset(self, presetPath: str) -> bool:
1559
+ """Import a render preset from a file and select it"""
1560
+ ...
1561
+ def ExportRenderPreset(self, presetName: str, exportPath: str) -> bool:
1562
+ """Export a render preset to a file"""
1563
+ ...
1564
+ def GetBurnInPresetList(self) -> list[str]:
1565
+ """Returns a list of available data burn in preset names"""
1566
+ ...
1567
+ def DeleteBurnInPreset(self, presetName: str) -> bool:
1568
+ """Deletes the named data burn in preset"""
1569
+ ...
1570
+ def ImportBurnInPreset(self, presetPath: str) -> bool:
1571
+ """Import a data burn in preset from a file"""
1572
+ ...
1573
+ def ExportBurnInPreset(self, presetName: str, exportPath: str) -> bool:
1574
+ """Export a data burn in preset to a file"""
1575
+ ...
1576
+ def GetKeyboardPresetList(self) -> list[str]:
1577
+ """Returns a list of available keyboard preset names"""
1578
+ ...
1579
+ def LoadKeyboardPreset(self, presetName: str) -> bool:
1580
+ """Loads the named keyboard preset"""
1581
+ ...
1582
+ def DeleteKeyboardPreset(self, presetName: str) -> bool:
1583
+ """Deletes the named keyboard preset"""
1584
+ ...
1585
+ def GetCurrentKeyboardPreset(self) -> str:
1586
+ """Returns the name of the currently active keyboard preset"""
1587
+ ...
1588
+ def ImportKeyboardPreset(self, filePath: str, presetName: str | None = None) -> bool:
1589
+ """Imports a keyboard preset from file. Uses file base name as preset name if not specified."""
1590
+ ...
1591
+ def ExportKeyboardPreset(self, presetName: str, exportPath: str) -> bool:
1592
+ """Exports the named keyboard preset to the specified file path"""
1593
+ ...
1594
+ def GetKeyframeMode(self) -> int:
1595
+ """Returns the currently set keyframe mode, one of the resolve.KEYFRAME_MODE_* constants. Color Page only."""
1596
+ ...
1597
+ def SetKeyframeMode(self, keyframeMode: KeyframeMode) -> bool:
1598
+ """Set keyframe mode"""
1599
+ ...
1600
+ def GetFairlightPresets(self) -> list[str]:
1601
+ """Returns a list of Fairlight presets by name"""
1602
+ ...
1603
+ def DisableBackgroundTasksForCurrentResolveSession(self):
1604
+ """Disables all background tasks for current Resolve session"""
1605
+ ...
1606
+ def ValidateDCTL(self, dctlSource: str) -> str | None:
1607
+ """Validates DCTL source code. Returns None on success, error string on failure."""
1608
+ ...
1609
+ def EncryptDCTL(self, inputPath: str, encryptDCTLOptions: EncryptDCTLOptions | None = None) -> bool:
1610
+ """Encrypts the DCTL at inputPath and writes it to an output folder."""
1611
+ ...
1612
+ def GetUserPreferencesPresetList(self) -> list[str]:
1613
+ """Returns a list of available user preferences preset names"""
1614
+ ...
1615
+ def LoadUserPreferencesPreset(self, presetName: str) -> bool:
1616
+ """Loads the named user preferences preset"""
1617
+ ...
1618
+ def SaveUserPreferencesPreset(self, presetName: str) -> bool:
1619
+ """Saves current user preferences as a preset with the given name"""
1620
+ ...
1621
+ def DeleteUserPreferencesPreset(self, presetName: str) -> bool:
1622
+ """Deletes the named user preferences preset"""
1623
+ ...
1624
+ def ImportUserPreferencesPreset(self, filePath: str, presetName: str | None = None) -> bool:
1625
+ """Imports a user preferences preset from file. Uses file base name as preset name if not specified."""
1626
+ ...
1627
+ def ExportUserPreferencesPreset(self, presetName: str, exportPath: str) -> bool:
1628
+ """Exports the named user preferences preset to the specified file path"""
1629
+ ...
1630
+
1631
+ class ProjectManager:
1632
+ """Creates, loads and organizes projects, project folders and databases. See README.md section 'Cloud Projects Settings'."""
1633
+ def LoadProject(self, projectName: str) -> Project | None:
1634
+ """Loads and returns a project. Returns None if project was not found."""
1635
+ ...
1636
+ def CreateProject(self, projectName: str, mediaLocationPath: str | None = None) -> Project | None:
1637
+ """Creates and returns a project. Returns None if projectName exists."""
1638
+ ...
1639
+ def DeleteProject(self, projectName: str) -> bool:
1640
+ """Delete project in the current folder. Project must not be currently loaded."""
1641
+ ...
1642
+ def SaveProject(self) -> bool:
1643
+ """Saves the currently loaded project with its own name."""
1644
+ ...
1645
+ def GetCurrentProject(self) -> Project:
1646
+ """Returns the currently loaded Resolve project"""
1647
+ ...
1648
+ def CreateFolder(self, folderName: str) -> bool:
1649
+ """Creates a folder. Returns False if it already existed."""
1650
+ ...
1651
+ def GetProjectListInCurrentFolder(self) -> list[str]:
1652
+ """Returns a list of project names in current folder"""
1653
+ ...
1654
+ def GetFolderListInCurrentFolder(self) -> list[str]:
1655
+ """Returns a list of folder names in current folder"""
1656
+ ...
1657
+ def GotoRootFolder(self) -> bool:
1658
+ """Opens root folder in database"""
1659
+ ...
1660
+ def GotoParentFolder(self) -> bool:
1661
+ """Opens parent folder of current folder in database. Returns False if current folder has no parent."""
1662
+ ...
1663
+ def OpenFolder(self, folderName: str) -> bool:
1664
+ """Opens folder"""
1665
+ ...
1666
+ def ImportProject(self, filePath: str, projectName: str | None = None) -> bool:
1667
+ """Imports a project from the file"""
1668
+ ...
1669
+ def ExportProject(self, projectName: str, filePath: str, withStillsAndLUTs = True) -> bool:
1670
+ """Exports project to a file."""
1671
+ ...
1672
+ def ArchiveProject(self, projectName: str, filePath: str, isArchiveSrcMedia = True, isArchiveRenderCache = True, isArchiveProxyMedia = False) -> bool:
1673
+ """Archives project to a file"""
1674
+ ...
1675
+ def RestoreProject(self, filePath: str, projectName: str | None = None) -> bool:
1676
+ """Restores a project from the file"""
1677
+ ...
1678
+ def GetProjectLastModifiedTime(self, projectName: str) -> int:
1679
+ """Returns the last modified time of the project as an epoch timestamp"""
1680
+ ...
1681
+ def GetProjectAttributesInCurrentFolder(self) -> dict[str, ProjectAttributes]:
1682
+ """Returns a dict of project names mapped to their attributes (lastModifiedDate, creationDate, notes, liveCollaborationMode) for all projects in the current folder"""
1683
+ ...
1684
+ def CloseProject(self, project: Project) -> bool:
1685
+ """Closes the specified project without saving"""
1686
+ ...
1687
+ def GetCurrentFolder(self) -> str:
1688
+ """Returns the current folder name"""
1689
+ ...
1690
+ def DeleteFolder(self, folderName: str) -> bool:
1691
+ """Deletes the specified folder"""
1692
+ ...
1693
+ def GetCurrentDatabase(self) -> DatabaseInfo:
1694
+ """Returns a dictionary (with keys 'DbType', 'DbName' and optional 'IpAddress') corresponding to the current database connection"""
1695
+ ...
1696
+ def GetDatabaseList(self) -> list[DatabaseInfo]:
1697
+ """Returns a list of dictionary items (with keys 'DbType', 'DbName' and optional 'IpAddress') corresponding to all the databases added to Resolve"""
1698
+ ...
1699
+ def SetCurrentDatabase(self, dbInfo: DatabaseInfo) -> bool:
1700
+ """Switches current database connection to the database specified by the keys below, and closes any open project"""
1701
+ ...
1702
+ def LoadCloudProject(self, cloudSettings: CloudSettings) -> Project | None:
1703
+ """Loads and returns a cloud project with the given cloud settings. Returns None if not found"""
1704
+ ...
1705
+ def CreateCloudProject(self, cloudSettings: CloudSettings) -> Project | None:
1706
+ """Creates and returns a cloud project"""
1707
+ ...
1708
+ def ImportCloudProject(self, filePath: str, cloudSettings: CloudSettings) -> bool:
1709
+ """Imports a cloud project from the file path with given cloud settings"""
1710
+ ...
1711
+ def RestoreCloudProject(self, folderPath: str, cloudSettings: CloudSettings) -> bool:
1712
+ """Restores a cloud project from the folder path with given cloud settings"""
1713
+ ...
1714
+
1715
+ class Project:
1716
+ """A project: timelines, settings, presets and render jobs. See README.md section 'Looking up Project and Clip properties'."""
1717
+ def GetMediaPool(self) -> MediaPool:
1718
+ """Returns the MediaPool object"""
1719
+ ...
1720
+ def GetCurrentTimeline(self) -> Timeline:
1721
+ """Returns the currently loaded timeline"""
1722
+ ...
1723
+ def SetCurrentTimeline(self, timeline: Timeline) -> bool:
1724
+ """Sets given timeline as current timeline for the project"""
1725
+ ...
1726
+ def GetTimelineCount(self) -> int:
1727
+ """Returns the number of timelines in the project"""
1728
+ ...
1729
+ def GetTimelineByIndex(self, idx: int) -> Timeline | None:
1730
+ """Returns timeline at the given index, 1 <= idx <= project.GetTimelineCount()"""
1731
+ ...
1732
+ def GetGallery(self) -> Gallery:
1733
+ """Returns the Gallery object"""
1734
+ ...
1735
+ def GetName(self) -> str:
1736
+ """Returns project name"""
1737
+ ...
1738
+ def SetName(self, projectName: str) -> bool:
1739
+ """Sets project name if given projectName is unique"""
1740
+ ...
1741
+ def GetProjectSettingsPresetList(self) -> list[ProjectSettingsPresetInfo]:
1742
+ """Returns a list of project settings presets and their information"""
1743
+ ...
1744
+ def SetProjectSettingsPreset(self, presetName: str) -> bool:
1745
+ """Sets project settings preset by given name into project"""
1746
+ ...
1747
+ def DeleteProjectSettingsPreset(self, presetName: str) -> bool:
1748
+ """Deletes the project settings preset with the given name"""
1749
+ ...
1750
+ def SaveCurrentProjectSettingsAsNewPreset(self, presetName: str) -> bool:
1751
+ """Saves the current project settings as a new preset with the given name"""
1752
+ ...
1753
+ def UpdateProjectSettingsPreset(self, presetName: str) -> bool:
1754
+ """Updates the given project settings preset with current settings"""
1755
+ ...
1756
+ def ExportProjectSettingsPreset(self, presetName: str, exportPath: str) -> bool:
1757
+ """Exports the given project settings preset to the specified file path"""
1758
+ ...
1759
+ def ImportProjectSettingsPreset(self, presetFilePath: str, presetName: str | None = None) -> bool:
1760
+ """Imports a project settings preset from file. Uses file base name as preset name if not specified."""
1761
+ ...
1762
+ def GetRenderJobList(self) -> list[RenderJobInfo]:
1763
+ """Returns a list of render jobs and their information"""
1764
+ ...
1765
+ def GetRenderPresetList(self) -> list[str]:
1766
+ """Returns a list of render preset names"""
1767
+ ...
1768
+ def LoadRenderPreset(self, presetName: str) -> bool:
1769
+ """Loads a render preset by name"""
1770
+ ...
1771
+ def SaveAsNewRenderPreset(self, presetName: str) -> bool:
1772
+ """Saves current render settings as a new preset with the given name"""
1773
+ ...
1774
+ def DeleteRenderPreset(self, presetName: str) -> bool:
1775
+ """Deletes given render preset"""
1776
+ ...
1777
+ def UpdateRenderPreset(self, presetName: str) -> bool:
1778
+ """Updates given render preset with current render settings"""
1779
+ ...
1780
+ def SetQuickExportEnabledForRenderPreset(self, presetName: str, isEnabled: bool) -> bool:
1781
+ """Enables or disables quick export for the named render preset"""
1782
+ ...
1783
+ def StartRendering(self, jobIds: list[str], isInteractiveMode = False) -> bool:
1784
+ """Starts rendering jobs indicated by the input job ids"""
1785
+ ...
1786
+ def StopRendering(self):
1787
+ """Stops any current render processes"""
1788
+ ...
1789
+ def IsRenderingInProgress(self) -> bool:
1790
+ """Returns True if a rendering is in progress"""
1791
+ ...
1792
+ def AddRenderJob(self) -> str:
1793
+ """Adds a render job based on current render settings to the render queue"""
1794
+ ...
1795
+ def DeleteRenderJob(self, jobId: str) -> bool:
1796
+ """Deletes render job for input job id"""
1797
+ ...
1798
+ def DeleteAllRenderJobs(self) -> bool:
1799
+ """Deletes all render jobs in the queue"""
1800
+ ...
1801
+ def SetRenderSettings(self, settings: RenderSettings) -> bool:
1802
+ """Sets given settings for rendering"""
1803
+ ...
1804
+ def GetRenderResolutions(self, format: str | None = None, codec: str | None = None) -> list[ResolutionInfo]:
1805
+ """Returns list of resolutions applicable for the given render format and codec"""
1806
+ ...
1807
+ def GetSettings(self) -> ProjectSettings:
1808
+ """Returns a dict with all project settings. See README.md section 'Looking up Project and Clip properties'."""
1809
+ ...
1810
+ def SetSettings(self, settings: ProjectSettings) -> bool:
1811
+ """Sets the project settings with specified dict of setting names and values. See README.md section 'Looking up Project and Clip properties'."""
1812
+ ...
1813
+ def GetRenderJobStatus(self, jobId: str) -> RenderJobStatus:
1814
+ """Returns a dict with job status and completion percentage"""
1815
+ ...
1816
+ def GetQuickExportRenderPresets(self) -> list[str]:
1817
+ """Returns a list of quick export render presets"""
1818
+ ...
1819
+ def RenderWithQuickExport(self, quickExportPresetName: str, presetInfo: QuickExportRenderSettings) -> QuickExportRenderStatus:
1820
+ """Renders current timeline with quick export preset"""
1821
+ ...
1822
+ def GetRenderFormats(self) -> dict:
1823
+ """Returns a dict (format -> file extension) of available render formats"""
1824
+ ...
1825
+ def GetAudioRenderFormats(self) -> dict:
1826
+ """Returns a dict (format -> file extension) of available audio render formats"""
1827
+ ...
1828
+ def GetRenderCodecs(self, renderFormatFileExtension: str) -> dict:
1829
+ """Returns a dict (codec description -> codec name) of available codecs"""
1830
+ ...
1831
+ def GetAudioRenderCodecs(self, audioRenderFormatFileExtension: str) -> dict:
1832
+ """Returns a dict (codec description -> codec name) of available audio codecs for the given format"""
1833
+ ...
1834
+ def GetCurrentRenderFormatAndCodec(self) -> dict[str, str]:
1835
+ """Returns a dict with currently selected format and render codec"""
1836
+ ...
1837
+ def SetCurrentRenderFormatAndCodec(self, format: str, codec: str) -> bool:
1838
+ """Sets given render format and render codec as options for rendering"""
1839
+ ...
1840
+ def GetCurrentRenderMode(self) -> int:
1841
+ """Returns the render mode: 0 - Individual clips, 1 - Single clip"""
1842
+ ...
1843
+ def SetCurrentRenderMode(self, renderMode: int) -> bool:
1844
+ """Sets the render mode: 0 for Individual clips, 1 for Single clip"""
1845
+ ...
1846
+ def RefreshLUTList(self) -> bool:
1847
+ """Refreshes LUT List"""
1848
+ ...
1849
+ def GetUniqueId(self) -> str:
1850
+ """Returns a unique ID for the project item"""
1851
+ ...
1852
+ def InsertAudioToCurrentTrackAtPlayhead(self, mediaPath: str, startOffsetInSamples: int, durationInSamples: int) -> bool:
1853
+ """Inserts the media with startOffset and duration in samples to the current track at the playhead"""
1854
+ ...
1855
+ def LoadBurnInPreset(self, presetName: str) -> bool:
1856
+ """Loads user defined data burn in preset"""
1857
+ ...
1858
+ def ExportCurrentFrameAsStill(self, filePath: str) -> bool:
1859
+ """Exports current frame as still to supplied filePath"""
1860
+ ...
1861
+ def GetColorGroupsList(self) -> list[ColorGroup]:
1862
+ """Returns a list of all group objects in the timeline"""
1863
+ ...
1864
+ def AddColorGroup(self, groupName: str) -> ColorGroup:
1865
+ """Creates a new ColorGroup with unique groupName"""
1866
+ ...
1867
+ def DeleteColorGroup(self, colorGroup: ColorGroup) -> bool:
1868
+ """Deletes the given ColorGroup and sets clips to ungrouped"""
1869
+ ...
1870
+ def ApplyFairlightPresetToCurrentTimeline(self, presetName: str) -> bool:
1871
+ """Applies Fairlight preset to current timeline"""
1872
+ ...
1873
+ def ResetIntellisearchAnalysis(self) -> bool:
1874
+ """Resets intellisearch analysis for the project"""
1875
+ ...
1876
+ def GenerateSpeech(self, speechSettings: SpeechSettings) -> MediaPoolItem:
1877
+ """Generates speech for given speechSettings dict"""
1878
+ ...
1879
+
1880
+ class MediaPool:
1881
+ """The media pool of a project: its folders, its clips and the timelines created from them."""
1882
+ def AddSubFolder(self, folder: Folder, name: str) -> Folder:
1883
+ """Adds new subfolder under specified Folder object with the given name"""
1884
+ ...
1885
+ def GetCurrentFolder(self) -> Folder:
1886
+ """Returns currently selected Folder"""
1887
+ ...
1888
+ def RefreshFolders(self) -> bool:
1889
+ """Updates the folders in collaboration mode"""
1890
+ ...
1891
+ def SetCurrentFolder(self, folder: Folder) -> bool:
1892
+ """Sets current folder by given Folder"""
1893
+ ...
1894
+ def GetRootFolder(self) -> Folder:
1895
+ """Returns root Folder of Media Pool"""
1896
+ ...
1897
+ def CreateTimelineFromClips(self, name: str, clipInfos: list[CreateTimelineClipInfo]) -> Timeline:
1898
+ """Creates new timeline with specified name, and appends the specified MediaPoolItem objects"""
1899
+ ...
1900
+ def AppendToTimeline(self, clipInfos: list[AppendClipInfo]) -> list[TimelineItem]:
1901
+ """Appends specified MediaPoolItem objects in the current timeline. Returns the list of appended timelineItems"""
1902
+ ...
1903
+ def CreateEmptyTimeline(self, name: str) -> Timeline:
1904
+ """Adds new timeline with given name"""
1905
+ ...
1906
+ def ImportTimelineFromFile(self, filePath: str, importOptions: ImportOptions | None = None) -> Timeline:
1907
+ """Creates timeline based on parameters within given file (AAF/EDL/XML/FCPXML/DRT/ADL/OTIO) and optional importOptions dict"""
1908
+ ...
1909
+ def DeleteTimelines(self, timelines: list[Timeline]) -> bool:
1910
+ """Deletes specified timelines in the media pool"""
1911
+ ...
1912
+ def ExportMetadata(self, fileName: str, clips: list[MediaPoolItem] | None = None) -> bool:
1913
+ """Exports metadata of specified clips to 'fileName' in CSV format. If no clips are specified, all clips from media pool will be used"""
1914
+ ...
1915
+ def DeleteClips(self, clips: list[MediaPoolItem]) -> bool:
1916
+ """Deletes specified clips or timeline mattes in the media pool"""
1917
+ ...
1918
+ def ImportFolderFromFile(self, filePath: str, sourceClipsPath: str | None = None) -> bool:
1919
+ """Imports a DRB folder from the given file path"""
1920
+ ...
1921
+ def DeleteFolders(self, subfolders: list[Folder]) -> bool:
1922
+ """Deletes specified subfolders in the media pool"""
1923
+ ...
1924
+ def MoveClips(self, clips: list[MediaPoolItem], targetFolder: Folder) -> bool:
1925
+ """Moves specified clips to target folder"""
1926
+ ...
1927
+ def MoveFolders(self, folders: list[Folder], targetFolder: Folder) -> bool:
1928
+ """Moves specified folders to target folder"""
1929
+ ...
1930
+ def GetClipMatteList(self, mediaPoolItem: MediaPoolItem) -> list[str]:
1931
+ """Get mattes for specified MediaPoolItem, as a list of paths to the matte files"""
1932
+ ...
1933
+ def GetTimelineMatteList(self, folder: Folder) -> list[MediaPoolItem]:
1934
+ """Get mattes in specified Folder, as list of MediaPoolItems"""
1935
+ ...
1936
+ def DeleteClipMattes(self, mediaPoolItem: MediaPoolItem, paths: list[str]) -> bool:
1937
+ """Delete mattes based on their file paths, for specified MediaPoolItem"""
1938
+ ...
1939
+ def RelinkClips(self, clips: list[MediaPoolItem], folderPath: str) -> bool:
1940
+ """Update the folder location of specified media pool clips with the specified folder path"""
1941
+ ...
1942
+ def UnlinkClips(self, clips: list[MediaPoolItem]) -> bool:
1943
+ """Unlink specified media pool clips"""
1944
+ ...
1945
+ def ImportMedia(self, clipInfos: list[ImportClipInfo]) -> list[MediaPoolItem]:
1946
+ """Imports specified file/folder paths into current Media Pool folder. Returns a list of the MediaPoolItems created"""
1947
+ ...
1948
+ def GetUniqueId(self) -> str:
1949
+ """Returns a unique ID for the media pool"""
1950
+ ...
1951
+ def CreateStereoClip(self, leftMediaPoolItem: MediaPoolItem, rightMediaPoolItem: MediaPoolItem) -> MediaPoolItem:
1952
+ """Takes in two existing media pool items and creates a new 3D stereoscopic media pool entry replacing the input media"""
1953
+ ...
1954
+ def CreateMulticamClip(self, clips: list[MediaPoolItem], multicamOptions: MulticamOptions) -> list[MediaPoolItem]:
1955
+ """Creates Multicam clips from the specified MediaPoolItems and options"""
1956
+ ...
1957
+ def AutoSyncAudio(self, mediaPoolItems: list[MediaPoolItem], audioSyncSettings: AudioSyncSettings) -> bool:
1958
+ """Syncs audio for specified MediaPoolItems. The list must contain at least one video and one audio clip."""
1959
+ ...
1960
+ def GetSelectedClips(self) -> list[MediaPoolItem]:
1961
+ """Returns the current selected MediaPoolItems"""
1962
+ ...
1963
+ def SetSelectedClip(self, mediaPoolItem: MediaPoolItem) -> bool:
1964
+ """Sets the selected MediaPoolItem to the given MediaPoolItem"""
1965
+ ...
1966
+
1967
+ class MediaPoolItem:
1968
+ """A clip in the media pool. See README.md section 'Looking up Project and Clip properties'."""
1969
+ def GetName(self) -> str:
1970
+ """Returns the clip name."""
1971
+ ...
1972
+ def SetName(self, name: str) -> bool:
1973
+ """Sets the clip's name to name(string)."""
1974
+ ...
1975
+ def GetTimeline(self) -> Timeline:
1976
+ """Returns the timeline object if the mpItem is a timeline clip"""
1977
+ ...
1978
+ def GetMetadata(self, metadataType: str | None = None) -> str | dict:
1979
+ """Returns the metadata value for the key 'metadataType'. If no argument is specified, a dict of all set metadata properties is returned."""
1980
+ ...
1981
+ def SetMetadata(self, metadata: dict) -> bool:
1982
+ """Sets the item metadata with specified dict of key-value pairs"""
1983
+ ...
1984
+ def GetThirdPartyMetadata(self, metadataType: str | None = None) -> str | dict:
1985
+ """Returns the third party metadata value for the key 'metadataType'. If no argument, a dict of all set third party metadata properties is returned."""
1986
+ ...
1987
+ def SetThirdPartyMetadata(self, metadata: dict) -> bool:
1988
+ """Sets/Add the item third party metadata with specified dict of key-value pairs"""
1989
+ ...
1990
+ def GetMediaId(self) -> str:
1991
+ """Returns the unique ID for the MediaPoolItem."""
1992
+ ...
1993
+ def AddMarker(self, frameId: int, color: MarkerColor, name: str, note: str, duration: int, customData: str | None = None) -> bool:
1994
+ """Creates a new marker at given frameId position. 'customData' is optional."""
1995
+ ...
1996
+ def DeleteMarkersByColor(self, color: MarkerColor | Literal['All']) -> bool:
1997
+ """Delete all markers of the specified color. 'All' as argument deletes all color markers."""
1998
+ ...
1999
+ def DeleteMarkerAtFrame(self, frameNum: int) -> bool:
2000
+ """Delete marker at frame number from the media pool item."""
2001
+ ...
2002
+ def DeleteMarkerByCustomData(self, customData: str) -> bool:
2003
+ """Delete first matching marker with specified customData."""
2004
+ ...
2005
+ def GetMarkers(self) -> dict[int, MarkerInfo]:
2006
+ """Returns a dict (frameId -> {information}) of all markers."""
2007
+ ...
2008
+ def GetMarkerByCustomData(self, customData: str) -> MarkerInfo:
2009
+ """Returns marker {information} for the first matching marker with specified customData."""
2010
+ ...
2011
+ def UpdateMarkerCustomData(self, frameId: int, customData: str) -> bool:
2012
+ """Updates customData for the marker at given frameId position."""
2013
+ ...
2014
+ def GetMarkerCustomData(self, frameId: int) -> str:
2015
+ """Returns customData string for the marker at given frameId position."""
2016
+ ...
2017
+ def AddFlag(self, color: FlagColor) -> bool:
2018
+ """Adds a flag with given color (string)."""
2019
+ ...
2020
+ def GetFlagList(self) -> list[str]:
2021
+ """Returns a list of flag colors assigned to the item."""
2022
+ ...
2023
+ def ClearFlags(self, color: FlagColor | Literal['All']) -> bool:
2024
+ """Clears the flag of the given color if one exists. An 'All' argument is supported and clears all flags."""
2025
+ ...
2026
+ def GetClipColor(self) -> ClipColor | Literal['']:
2027
+ """Returns the item color as a string."""
2028
+ ...
2029
+ def SetClipColor(self, colorName: ClipColor) -> bool:
2030
+ """Sets the item color based on the colorName (string)."""
2031
+ ...
2032
+ def ClearClipColor(self) -> bool:
2033
+ """Clears the item color."""
2034
+ ...
2035
+ def LinkFullResolutionMedia(self, fullResMediaPath: str) -> bool:
2036
+ """Links proxy media to full resolution media files specified via its path."""
2037
+ ...
2038
+ def LinkProxyMedia(self, proxyMediaFilePath: str) -> bool:
2039
+ """Links proxy media located at path specified by arg 'proxyMediaFilePath' with the current clip."""
2040
+ ...
2041
+ def UnlinkProxyMedia(self) -> bool:
2042
+ """Unlinks any proxy media associated with clip."""
2043
+ ...
2044
+ def ReplaceClip(self, filePath: str) -> bool:
2045
+ """Replaces the underlying asset and metadata of MediaPoolItem with the specified absolute clip path."""
2046
+ ...
2047
+ def ReplaceClipPreserveSubClip(self, filePath: str) -> bool:
2048
+ """Replaces the underlying asset and metadata preserving original sub clip extents."""
2049
+ ...
2050
+ def GetClipProperty(self, propertyName: str | None = None) -> str | ClipProperties:
2051
+ """Returns the property value for the key 'propertyName'. If no argument, a dict of all clip properties is returned."""
2052
+ ...
2053
+ def SetClipProperty(self, propertyName: str, propertyValue: str) -> bool:
2054
+ """Sets the given property to propertyValue (string)."""
2055
+ ...
2056
+ def GetUniqueId(self) -> str:
2057
+ """Returns a unique ID for the media pool item"""
2058
+ ...
2059
+ def TranscribeAudio(self, useSpeakerDetection: bool | None = None, transcribeAsNestedClip = False) -> bool:
2060
+ """Transcribes audio of the MediaPoolItem"""
2061
+ ...
2062
+ def ClearTranscription(self, clearNestedClipTranscription = False) -> bool:
2063
+ """Clears audio transcription of the MediaPoolItem."""
2064
+ ...
2065
+ def PerformAudioClassification(self) -> bool:
2066
+ """Analyzes and classifies the audio of a MediaPoolItem."""
2067
+ ...
2068
+ def ClearAudioClassification(self) -> bool:
2069
+ """Clears audio classification of the MediaPoolItem."""
2070
+ ...
2071
+ def GetAudioMapping(self) -> str:
2072
+ """Returns a string with MediaPoolItem's audio mapping information (JSON format)."""
2073
+ ...
2074
+ def SetAudioMapping(self, audioMapping: str) -> bool:
2075
+ """Sets audio mapping from a JSON string."""
2076
+ ...
2077
+ def GetMarkInOut(self) -> MarkInOut:
2078
+ """Returns dict of in/out marks set."""
2079
+ ...
2080
+ def SetMarkInOut(self, markIn: int, markOut: int, markType: MarkType | None = None) -> bool:
2081
+ """Sets mark in/out of type MarkType (default: 'all')."""
2082
+ ...
2083
+ def ClearMarkInOut(self, markType: MarkType | None = None) -> bool:
2084
+ """Clears mark in/out of type MarkType (default: 'all')."""
2085
+ ...
2086
+ def MonitorGrowingFile(self) -> bool:
2087
+ """Monitor a file as long as it keeps growing."""
2088
+ ...
2089
+ def RemoveMotionBlur(self, deblurOption: DeblurOptions) -> MediaPoolItem:
2090
+ """Apply Motion Deblur on MediaPoolItem, Returns newly created MediaPoolItem."""
2091
+ ...
2092
+ def AnalyzeForIntellisearch(self, identifyFaces: bool, isBetterMode: bool) -> bool:
2093
+ """Perform Intellisearch analysis on the MediaPoolItem."""
2094
+ ...
2095
+ def AnalyzeForSlate(self, markerColor: SlateMarkerColor) -> bool:
2096
+ """Perform Slate analysis on the MediaPoolItem."""
2097
+ ...
2098
+ def GetTranscription(self, useNestedClipTranscription = False) -> Transcription:
2099
+ """Returns transcription data for the media pool item if available."""
2100
+ ...
2101
+
2102
+ class Timeline:
2103
+ """A timeline: tracks, items, markers and export. See README.md section 'Looking up timeline export properties'."""
2104
+ def GetName(self) -> str:
2105
+ """Returns the timeline name."""
2106
+ ...
2107
+ def SetName(self, timelineName: str) -> bool:
2108
+ """Sets the timeline name if timelineName (string) is unique."""
2109
+ ...
2110
+ def GetStartFrame(self) -> int:
2111
+ """Returns the frame number at the start of timeline."""
2112
+ ...
2113
+ def GetEndFrame(self) -> int:
2114
+ """Returns the frame number at the end of timeline."""
2115
+ ...
2116
+ def GetTrackCount(self, trackType: TrackType) -> int:
2117
+ """Returns the number of tracks for the given TrackType."""
2118
+ ...
2119
+ def GetItemListInTrack(self, trackType: TrackType, index: int) -> list[TimelineItem]:
2120
+ """Returns a list of timeline items on specified track."""
2121
+ ...
2122
+ def GetSelectedClips(self) -> list[TimelineItem]:
2123
+ """Returns the currently selected timeline items"""
2124
+ ...
2125
+ def GetCurrentTimecode(self) -> str:
2126
+ """Returns a string timecode representation for the current playhead position."""
2127
+ ...
2128
+ def SetCurrentTimecode(self, timecode: str) -> bool:
2129
+ """Sets current playhead position from input timecode."""
2130
+ ...
2131
+ def GetCurrentVideoItem(self) -> TimelineItem | None:
2132
+ """Returns the current video timeline item."""
2133
+ ...
2134
+ def AddMarker(self, frameId: int, color: MarkerColor, name: str, note: str, duration: int, customData: str | None = None) -> bool:
2135
+ """Creates a new marker at given frameId position."""
2136
+ ...
2137
+ def DeleteMarkersByColor(self, color: MarkerColor | Literal['All']) -> bool:
2138
+ """Deletes all timeline markers of the specified color."""
2139
+ ...
2140
+ def DeleteMarkerAtFrame(self, frameNum: int) -> bool:
2141
+ """Deletes the timeline marker at the given frame number."""
2142
+ ...
2143
+ def DeleteMarkerByCustomData(self, customData: str) -> bool:
2144
+ """Delete first matching marker with specified customData."""
2145
+ ...
2146
+ def GetMarkers(self) -> dict[int, MarkerInfo]:
2147
+ """Returns a dict (frameId -> {information}) of all markers."""
2148
+ ...
2149
+ def GetMarkerByCustomData(self, customData: str) -> MarkerInfo:
2150
+ """Returns marker {information} for the first matching marker with specified customData."""
2151
+ ...
2152
+ def UpdateMarkerCustomData(self, frameId: int, customData: str) -> bool:
2153
+ """Updates customData for the marker at given frameId position."""
2154
+ ...
2155
+ def GetMarkerCustomData(self, frameId: int) -> str:
2156
+ """Returns customData string for the marker at given frameId position."""
2157
+ ...
2158
+ def GetCurrentClipThumbnailImage(self) -> ThumbnailData:
2159
+ """Returns a dict with data containing raw thumbnail image data for current media in the Color Page."""
2160
+ ...
2161
+ def AddTrack(self, trackType: TrackType, subTrackType: str | None = None) -> bool:
2162
+ """Adds track of TrackType. Optional argument subTrackType."""
2163
+ ...
2164
+ def DeleteTrack(self, trackType: TrackType, trackIndex: int) -> bool:
2165
+ """Deletes track of trackType and given trackIndex. 1 <= trackIndex <= GetTrackCount(trackType)."""
2166
+ ...
2167
+ def GetTrackSubType(self, trackType: TrackType, trackIndex: int) -> str:
2168
+ """Returns an audio track's format."""
2169
+ ...
2170
+ def SetTrackEnable(self, trackType: TrackType, trackIndex: int, enabled: bool) -> bool:
2171
+ """Enables/Disables track with given trackType and trackIndex"""
2172
+ ...
2173
+ def GetIsTrackEnabled(self, trackType: TrackType, trackIndex: int) -> bool:
2174
+ """Returns True if track with given trackType and trackIndex is enabled."""
2175
+ ...
2176
+ def SetTrackLock(self, trackType: TrackType, trackIndex: int, locked: bool) -> bool:
2177
+ """Locks/Unlocks track with given trackType and trackIndex"""
2178
+ ...
2179
+ def GetIsTrackLocked(self, trackType: TrackType, trackIndex: int) -> bool:
2180
+ """Returns True if track with given trackType and trackIndex is locked."""
2181
+ ...
2182
+ def DeleteClips(self, timelineItems: list[TimelineItem], rippleDelete = False) -> bool:
2183
+ """Deletes specified TimelineItems from the timeline, performing ripple delete if second argument is True."""
2184
+ ...
2185
+ def SetClipsLinked(self, timelineItems: list[TimelineItem], linked: bool) -> bool:
2186
+ """Links or unlinks the specified TimelineItems depending on second argument."""
2187
+ ...
2188
+ def NormalizeAudioLevel(self, timelineItems: list[TimelineItem], normalizeAudioOptions: NormalizeAudioOptions | None = None) -> bool:
2189
+ """Normalizes the audio level of specified TimelineItems using the given normalizeAudioOptions."""
2190
+ ...
2191
+ def AutoAlignClips(self, timelineItems: list[TimelineItem], autoAlignOptions: AutoAlignOptions | None = None) -> bool:
2192
+ """Aligns specified TimelineItems using the given options. Returns True if successful, False otherwise."""
2193
+ ...
2194
+ def GetNormalizeAudioModes(self) -> list[str]:
2195
+ """Returns the list of valid normalizationMode strings for NormalizeAudioLevel."""
2196
+ ...
2197
+ def GetTrackName(self, trackType: TrackType, trackIndex: int) -> str:
2198
+ """Returns the track name for track indicated by trackType and index."""
2199
+ ...
2200
+ def SetTrackName(self, trackType: TrackType, trackIndex: int, name: str) -> bool:
2201
+ """Sets the track name for track indicated by trackType and index."""
2202
+ ...
2203
+ def DuplicateTimeline(self, timelineName: str) -> Timeline:
2204
+ """Duplicates the timeline and returns the created timeline."""
2205
+ ...
2206
+ def GrabStill(self) -> GalleryStill:
2207
+ """Grabs still from the current video clip. Returns a GalleryStill object."""
2208
+ ...
2209
+ def GrabAllStills(self, stillFrameSource: int) -> list[GalleryStill]:
2210
+ """Grabs stills from all clips at 'stillFrameSource' (1=First frame, 2=Middle frame)."""
2211
+ ...
2212
+ def CreateCompoundClip(self, timelineItems: list[TimelineItem], clipInfo: CompoundClipOptions | None = None) -> TimelineItem:
2213
+ """Creates a compound clip of input timeline items."""
2214
+ ...
2215
+ def CreateFusionClip(self, timelineItems: list[TimelineItem]) -> TimelineItem:
2216
+ """Creates a Fusion clip of input timeline items."""
2217
+ ...
2218
+ def Export(self, fileName: str, exportType: TimelineExportType, exportSubtype: TimelineExportSubtype) -> bool:
2219
+ """Exports timeline to 'fileName' as per input exportType & exportSubtype format. See README.md section 'Looking up timeline export properties'."""
2220
+ ...
2221
+ def GetSettings(self) -> TimelineSettings | ProjectSettings:
2222
+ """Returns a dict with all timeline settings, or the project settings when useCustomSettings is '0'. See README.md section 'Looking up Project and Clip properties'."""
2223
+ ...
2224
+ def SetSettings(self, settings: TimelineSettings) -> bool:
2225
+ """Sets the timeline settings with specified dict of setting names and values. See README.md section 'Looking up Project and Clip properties'."""
2226
+ ...
2227
+ def GetStartTimecode(self) -> str:
2228
+ """Returns the start timecode for the timeline."""
2229
+ ...
2230
+ def SetStartTimecode(self, timecode: str) -> bool:
2231
+ """Set the start timecode of the timeline to the string 'timecode'."""
2232
+ ...
2233
+ def ImportIntoTimeline(self, filePath: str, importOptions: AAFImportOptions | None = None) -> bool:
2234
+ """Imports timeline items from an AAF file."""
2235
+ ...
2236
+ def InsertGeneratorIntoTimeline(self, generatorName: str) -> TimelineItem:
2237
+ """Inserts a generator into the timeline."""
2238
+ ...
2239
+ def InsertFusionGeneratorIntoTimeline(self, generatorName: str) -> TimelineItem:
2240
+ """Inserts a Fusion generator into the timeline."""
2241
+ ...
2242
+ def InsertFusionCompositionIntoTimeline(self) -> TimelineItem:
2243
+ """Inserts a Fusion composition into the timeline."""
2244
+ ...
2245
+ def InsertOFXGeneratorIntoTimeline(self, generatorName: str) -> TimelineItem:
2246
+ """Inserts an OFX generator into the timeline."""
2247
+ ...
2248
+ def InsertTitleIntoTimeline(self, titleName: str) -> TimelineItem:
2249
+ """Inserts a title into the timeline."""
2250
+ ...
2251
+ def InsertFusionTitleIntoTimeline(self, titleName: str) -> TimelineItem:
2252
+ """Inserts a Fusion title into the timeline."""
2253
+ ...
2254
+ def CreateSubtitlesFromAudio(self, autoCaptionSettings: AutoCaptionSettings | None = None) -> bool:
2255
+ """Creates subtitles from audio for the timeline."""
2256
+ ...
2257
+ def GetUniqueId(self) -> str:
2258
+ """Returns a unique ID for the timeline"""
2259
+ ...
2260
+ def DetectSceneCuts(self) -> bool:
2261
+ """Detects and makes scene cuts along the timeline."""
2262
+ ...
2263
+ def ConvertTimelineToStereo(self) -> bool:
2264
+ """Converts timeline to stereo."""
2265
+ ...
2266
+ def GetNodeGraph(self) -> Graph:
2267
+ """Returns the timeline's node graph object."""
2268
+ ...
2269
+ def AnalyzeDolbyVision(self, timelineItems: list[TimelineItem], analysisType: DolbyVisionAnalysisType) -> bool:
2270
+ """Analyzes Dolby Vision on clips present on the timeline."""
2271
+ ...
2272
+ def GetMediaPoolItem(self) -> MediaPoolItem | None:
2273
+ """Returns the media pool item corresponding to the timeline"""
2274
+ ...
2275
+ def GetMarkInOut(self) -> MarkInOut:
2276
+ """Returns dict of in/out marks set."""
2277
+ ...
2278
+ def SetMarkInOut(self, markIn: int, markOut: int, markType: MarkType | None = None) -> bool:
2279
+ """Sets mark in/out of type MarkType (default: 'all')"""
2280
+ ...
2281
+ def ClearMarkInOut(self, markType: MarkType | None = None) -> bool:
2282
+ """Clears mark in/out of type MarkType (default: 'all')"""
2283
+ ...
2284
+ def GetVoiceIsolationState(self, trackIndex: int) -> VoiceIsolationState:
2285
+ """Returns the Voice Isolation State as a dict."""
2286
+ ...
2287
+ def SetVoiceIsolationState(self, trackIndex: int, voiceIsolationState: VoiceIsolationState) -> bool:
2288
+ """Sets Voice Isolation state of audio track."""
2289
+ ...
2290
+ def SetOutputBlanking(self, outputBlanking: OutputBlanking) -> bool:
2291
+ """Sets the output blanking for the timeline. Accepts a dictionary with keys 'Top', 'Bottom', 'Left' and 'Right'. The values are in pixels."""
2292
+ ...
2293
+ def GetOutputBlanking(self) -> OutputBlanking:
2294
+ """Returns the output blanking for the timeline as a dictionary with keys 'Top', 'Bottom', 'Left' and 'Right'. The values are in pixels."""
2295
+ ...
2296
+
2297
+ class TimelineItem:
2298
+ """A clip, title, generator or transition on a timeline track. See README.md section 'Looking up Timeline item properties'."""
2299
+ def GetType(self) -> str:
2300
+ """Returns the type of the item: 'video', 'audio', 'generator' or 'transition'"""
2301
+ ...
2302
+ def AddTransition(self, transitionOptions: TransitionOptions) -> TimelineItem | None:
2303
+ """Adds a transition of the given type/category to the start or end of this item. Returns the created transition item or None on failure."""
2304
+ ...
2305
+ def GetName(self) -> str:
2306
+ """Returns the item name"""
2307
+ ...
2308
+ def SetName(self, name: str) -> bool:
2309
+ """Sets the clip's name to name."""
2310
+ ...
2311
+ def GetStart(self, subframePrecision = False) -> float:
2312
+ """Returns the start frame position on the timeline. Returns fractional frames if subframe_precision is True"""
2313
+ ...
2314
+ def GetEnd(self, subframePrecision = False) -> float:
2315
+ """Returns the end frame position on the timeline. Returns fractional frames if subframe_precision is True"""
2316
+ ...
2317
+ def GetSourceStartFrame(self) -> int:
2318
+ """Returns the start frame position of the media pool clip in the timeline clip"""
2319
+ ...
2320
+ def GetSourceEndFrame(self) -> int:
2321
+ """Returns the end frame position of the media pool clip in the timeline clip"""
2322
+ ...
2323
+ def GetSourceStartTime(self) -> float:
2324
+ """Returns the start time position of the media pool clip in the timeline clip"""
2325
+ ...
2326
+ def GetSourceEndTime(self) -> float:
2327
+ """Returns the end time position of the media pool clip in the timeline clip"""
2328
+ ...
2329
+ def GetDuration(self, subframePrecision = False) -> float:
2330
+ """Returns the item duration. Returns fractional frames if subframe_precision is True"""
2331
+ ...
2332
+ def GetLeftOffset(self, subframePrecision = False) -> float:
2333
+ """Returns the maximum extension by frame for clip from left side. Returns fractional frames if subframe_precision is True"""
2334
+ ...
2335
+ def GetRightOffset(self, subframePrecision = False) -> float:
2336
+ """Returns the maximum extension by frame for clip from right side. Returns fractional frames if subframe_precision is True"""
2337
+ ...
2338
+ def GetFusionCompCount(self) -> int:
2339
+ """Returns number of Fusion compositions associated with the timeline item"""
2340
+ ...
2341
+ def GetFusionCompNameList(self) -> list[str]:
2342
+ """Returns a list of Fusion composition names associated with the timeline item"""
2343
+ ...
2344
+ def GetFusionCompByIndex(self, compIndex: int) -> FusionComp | None:
2345
+ """Returns the Fusion composition object based on given index. 1 <= compIndex <= timelineItem.GetFusionCompCount()"""
2346
+ ...
2347
+ def GetFusionCompByName(self, compName: str) -> FusionComp | None:
2348
+ """Returns the Fusion composition object based on given name"""
2349
+ ...
2350
+ def AddFusionComp(self) -> FusionComp:
2351
+ """Adds a new Fusion composition associated with the timeline item"""
2352
+ ...
2353
+ def GetMediaPoolItem(self) -> MediaPoolItem | None:
2354
+ """Returns the media pool item corresponding to the timeline item if one exists"""
2355
+ ...
2356
+ def AddMarker(self, frameId: int, color: MarkerColor, name: str, note: str, duration: int, customData: str | None = None) -> bool:
2357
+ """Creates a new marker at given frameId position and with given marker information. 'customData' is optional and helps to attach user specific data to the marker"""
2358
+ ...
2359
+ def DeleteMarkersByColor(self, color: MarkerColor | Literal['All']) -> bool:
2360
+ """Deletes all markers of the specified color from the timeline item. 'All' as argument deletes all color markers"""
2361
+ ...
2362
+ def DeleteMarkerAtFrame(self, frameNum: int) -> bool:
2363
+ """Deletes marker at frame number from the timeline item"""
2364
+ ...
2365
+ def DeleteMarkerByCustomData(self, customData: str) -> bool:
2366
+ """Deletes first matching marker with specified customData"""
2367
+ ...
2368
+ def GetMarkers(self) -> dict[int, MarkerInfo]:
2369
+ """Returns a dict (frameId -> {information}) of all markers and dicts with their information"""
2370
+ ...
2371
+ def GetMarkerByCustomData(self, customData: str) -> MarkerInfo:
2372
+ """Returns marker {information} for the first matching marker with specified customData"""
2373
+ ...
2374
+ def UpdateMarkerCustomData(self, frameId: int, customData: str) -> bool:
2375
+ """Updates customData (string) for the marker at given frameId position. CustomData is not exposed via UI and is useful for scripting developer to attach any user specific data to markers"""
2376
+ ...
2377
+ def GetMarkerCustomData(self, frameId: int) -> str:
2378
+ """Returns customData string for the marker at given frameId position"""
2379
+ ...
2380
+ def SetProperties(self, properties: TimelineItemProperties) -> bool:
2381
+ """Sets the item properties with specified dict of property keys and values. See README.md section 'Looking up Timeline item properties'."""
2382
+ ...
2383
+ def GetProperties(self) -> TimelineItemProperties:
2384
+ """Returns a dict with all supported item properties. See README.md section 'Looking up Timeline item properties'."""
2385
+ ...
2386
+ def SetSpeed(self, speedOptions: SpeedOptions) -> bool:
2387
+ """Sets the Clip Speed"""
2388
+ ...
2389
+ def GetSpeed(self) -> SpeedOptions:
2390
+ """Returns the clip speed options"""
2391
+ ...
2392
+ def AddFlag(self, color: FlagColor) -> bool:
2393
+ """Adds a flag with given color (string)"""
2394
+ ...
2395
+ def GetFlagList(self) -> list[str]:
2396
+ """Returns a list of flag colors assigned to the item"""
2397
+ ...
2398
+ def ClearFlags(self, color: FlagColor | Literal['All']) -> bool:
2399
+ """Clears flags of the specified color. An 'All' argument is supported to clear all flags"""
2400
+ ...
2401
+ def GetStereoConvergenceValues(self) -> dict[int, float]:
2402
+ """Returns a dict (offset -> value) of keyframe offsets and respective convergence values"""
2403
+ ...
2404
+ def GetStereoLeftFloatingWindowParams(self) -> dict[int, FloatingWindowParams]:
2405
+ """For the LEFT eye -> returns a dict (offset -> dict) of keyframe offsets and respective floating window params"""
2406
+ ...
2407
+ def GetStereoRightFloatingWindowParams(self) -> dict[int, FloatingWindowParams]:
2408
+ """For the RIGHT eye -> returns a dict (offset -> dict) of keyframe offsets and respective floating window params"""
2409
+ ...
2410
+ def GetClipColor(self) -> ClipColor | Literal['']:
2411
+ """Returns the item color as a string"""
2412
+ ...
2413
+ def SetClipColor(self, colorName: ClipColor) -> bool:
2414
+ """Sets the item color based on the colorName (string)"""
2415
+ ...
2416
+ def ClearClipColor(self) -> bool:
2417
+ """Clears the item color"""
2418
+ ...
2419
+ def ImportFusionComp(self, path: str) -> FusionComp:
2420
+ """Imports a Fusion composition from given file path by creating and adding a new composition for the item"""
2421
+ ...
2422
+ def ExportFusionComp(self, path: str, compIndex: int) -> bool:
2423
+ """Exports the Fusion composition based on given index to the path provided"""
2424
+ ...
2425
+ def DeleteFusionCompByName(self, compName: str) -> bool:
2426
+ """Deletes the named Fusion composition"""
2427
+ ...
2428
+ def LoadFusionCompByName(self, compName: str) -> FusionComp:
2429
+ """Loads the named Fusion composition as the active composition"""
2430
+ ...
2431
+ def RenameFusionCompByName(self, oldName: str, newName: str) -> bool:
2432
+ """Renames the Fusion composition identified by oldName"""
2433
+ ...
2434
+ def RenameVersionByName(self, oldName: str, newName: str, versionType: int) -> bool:
2435
+ """Renames the color version identified by oldName and versionType (0 - local, 1 - remote)"""
2436
+ ...
2437
+ def DeleteVersionByName(self, versionName: str, versionType: int) -> bool:
2438
+ """Deletes a color version by name and versionType (0 - local, 1 - remote)"""
2439
+ ...
2440
+ def LoadVersionByName(self, versionName: str, versionType: int) -> bool:
2441
+ """Loads a named color version as the active version. versionType: 0 - local, 1 - remote"""
2442
+ ...
2443
+ def AddVersion(self, versionName: str, versionType: int) -> bool:
2444
+ """Adds a new color version for a video clip based on versionType (0 - local, 1 - remote)"""
2445
+ ...
2446
+ def GetVersionNameList(self, versionType: int) -> list[str]:
2447
+ """Returns a list of all color versions for the given versionType (0 - local, 1 - remote)"""
2448
+ ...
2449
+ def SetCDL(self, CDL: CDL) -> bool:
2450
+ """Sets CDL values on the node. Keys of map are: 'NodeIndex', 'Slope', 'Offset', 'Power', 'Saturation'"""
2451
+ ...
2452
+ def AddTake(self, mediaPoolItem: MediaPoolItem, startFrame: int | None = None, endFrame: int | None = None) -> bool:
2453
+ """Adds mediaPoolItem as a new take. Initializes a take selector for the timeline item if needed. By default, the full clip extents is added. startFrame and endFrame are optional arguments used to specify the extents"""
2454
+ ...
2455
+ def GetSelectedTakeIndex(self) -> int:
2456
+ """Returns the index of the currently selected take, or 0 if the clip is not a take selector"""
2457
+ ...
2458
+ def GetTakesCount(self) -> int:
2459
+ """Returns the number of takes in take selector, or 0 if the clip is not a take selector"""
2460
+ ...
2461
+ def GetTakeByIndex(self, idx: int) -> TakeInfo | None:
2462
+ """Returns a dict with take info for specified index"""
2463
+ ...
2464
+ def DeleteTakeByIndex(self, idx: int) -> bool:
2465
+ """Deletes a take by index, 1 <= idx <= number of takes"""
2466
+ ...
2467
+ def SelectTakeByIndex(self, idx: int) -> bool:
2468
+ """Selects a take by index, 1 <= idx <= number of takes"""
2469
+ ...
2470
+ def FinalizeTake(self) -> bool:
2471
+ """Finalizes take selection"""
2472
+ ...
2473
+ def CopyGrades(self, tgtTimelineItems: list[TimelineItem]) -> bool:
2474
+ """Copies the current node stack layer grade to the same layer for each item in tgtTimelineItems."""
2475
+ ...
2476
+ def GetClipEnabled(self) -> bool:
2477
+ """Gets clip enabled status"""
2478
+ ...
2479
+ def SetClipEnabled(self, enabled: bool) -> bool:
2480
+ """Sets clip enabled based on argument"""
2481
+ ...
2482
+ def GetCurrentVersion(self) -> VersionInfo:
2483
+ """Returns the current version of the video clip. The returned value will have the keys versionName and versionType (0 - local, 1 - remote)"""
2484
+ ...
2485
+ def UpdateSidecar(self) -> bool:
2486
+ """Updates sidecar file for BRAW clips or RMD file for R3D clips"""
2487
+ ...
2488
+ def GetUniqueId(self) -> str:
2489
+ """Returns a unique ID for the timeline item"""
2490
+ ...
2491
+ def LoadBurnInPreset(self, presetName: str) -> bool:
2492
+ """Loads user defined data burn in preset for clip when supplied presetName (string)."""
2493
+ ...
2494
+ def CreateMagicMask(self, mode: str) -> bool:
2495
+ """Creates a magic mask. mode can be 'F' (forward), 'B' (backward), or 'BI' (bidirectional)"""
2496
+ ...
2497
+ def RegenerateMagicMask(self) -> bool:
2498
+ """Regenerates the magic mask"""
2499
+ ...
2500
+ def Stabilize(self) -> bool:
2501
+ """Performs stabilization on the clip"""
2502
+ ...
2503
+ def SmartReframe(self) -> bool:
2504
+ """Performs Smart Reframe."""
2505
+ ...
2506
+ def GetNodeGraph(self, layerIdx: int | None = None) -> Graph:
2507
+ """Returns the clip's node graph object at layerIdx (int, optional). Returns the first layer if layerIdx is skipped. 1 <= layerIdx <= project.GetSetting('nodeStackLayers')"""
2508
+ ...
2509
+ def GetColorGroup(self) -> ColorGroup | None:
2510
+ """Returns the clip's color group if one exists"""
2511
+ ...
2512
+ def AssignToColorGroup(self, colorGroup: ColorGroup) -> bool:
2513
+ """Assigns the clip to the given ColorGroup. ColorGroup must be an existing group in the current project"""
2514
+ ...
2515
+ def RemoveFromColorGroup(self) -> bool:
2516
+ """Removes the clip from its ColorGroup"""
2517
+ ...
2518
+ def ExportLUT(self, exportType: ExportLutType, path: str) -> bool:
2519
+ """Exports a LUT of the size given by 'exportType', saving it in the provided 'path'"""
2520
+ ...
2521
+ def GetLinkedItems(self) -> list[TimelineItem]:
2522
+ """Returns a list of linked timeline items"""
2523
+ ...
2524
+ def GetTrackTypeAndIndex(self) -> list[str | int]:
2525
+ """Returns a list of two values that correspond to the TimelineItem's trackType (string) and trackIndex (int) respectively"""
2526
+ ...
2527
+ def GetSourceAudioChannelMapping(self) -> str:
2528
+ """Returns a string with TimelineItem's audio mapping information"""
2529
+ ...
2530
+ def SetSourceAudioChannelMapping(self, audioMapping: str) -> bool:
2531
+ """Sets source audio channel mapping from a JSON string."""
2532
+ ...
2533
+ def GetIsColorOutputCacheEnabled(self) -> bool:
2534
+ """Returns if the cache corresponding to cache_type is enabled"""
2535
+ ...
2536
+ def GetIsFusionOutputCacheEnabled(self) -> str:
2537
+ """Returns if the cache corresponding to cache_type is enabled (or auto)"""
2538
+ ...
2539
+ def SetColorOutputCache(self, enabled: bool) -> bool:
2540
+ """Sets caching to enabled or disabled. Equivalent to clip context menu action 'Render Cache Color Output'"""
2541
+ ...
2542
+ def SetFusionOutputCache(self, cacheValue: str) -> bool:
2543
+ """Sets caching to auto, enabled or disabled. Equivalent to clip context menu action 'Render Cache Fusion Output'"""
2544
+ ...
2545
+ def GetVoiceIsolationState(self) -> VoiceIsolationState:
2546
+ """Returns the Voice Isolation State as a dict {isEnabled, amount}, of the timelineItem"""
2547
+ ...
2548
+ def SetVoiceIsolationState(self, state: VoiceIsolationState) -> bool:
2549
+ """Sets Voice Isolation state of the timelineItem to the given VoiceIsolationState of {isEnabled (bool), amount (int)}. amount is in range of [0, 100]."""
2550
+ ...
2551
+ def ResetAllNodeColors(self) -> bool:
2552
+ """Resets node color for all nodes in the active version of the clip."""
2553
+ ...
2554
+ def SetOutputBlanking(self, outputBlanking: OutputBlanking) -> bool:
2555
+ """Sets the output blanking for the clip. Accepts a dictionary with keys 'Top', 'Bottom', 'Left' and 'Right'. The values are in pixels."""
2556
+ ...
2557
+ def GetOutputBlanking(self) -> OutputBlanking:
2558
+ """Returns the output blanking for the clip as a dictionary with keys 'Top', 'Bottom', 'Left' and 'Right'. The values are in pixels. The dictionary will be empty if the timeline's output blanking is used."""
2559
+ ...
2560
+ def SetUseTimelineForOutputBlanking(self, useTimelineOutputBlanking: bool) -> bool:
2561
+ """Sets the flag to use the timeline's output blanking for the clip."""
2562
+ ...
2563
+ def GetUseTimelineForOutputBlanking(self) -> bool:
2564
+ """Gets the flag to use the timeline's output blanking for the clip."""
2565
+ ...
2566
+ def PerformMulticamSmartSwitch(self, smartSwitchSettings: SmartSwitchSettings) -> bool:
2567
+ """Performs Multicam SmartSwitch on the multicam TimelineItem using the given smartSwitchSettings"""
2568
+ ...
2569
+ def FlattenMulticam(self, gradeOption: FlattenMulticamGrade) -> bool:
2570
+ """Flattens the multicam TimelineItem, using the grade source specified by gradeOption"""
2571
+ ...
2572
+ def GetFades(self) -> FadeInfo:
2573
+ """Returns a dict {FadeIn, FadeOut} of the fade durations (in frames) for the item's video or audio fader"""
2574
+ ...
2575
+ def SetFades(self, fades: FadeInfo) -> bool:
2576
+ """Sets the fade durations (in frames) for the item's video or audio fader from a dict {FadeIn, FadeOut}"""
2577
+ ...
2578
+
2579
+ class ColorGroup:
2580
+ """A group of clips sharing a pre-clip and a post-clip grade."""
2581
+ def GetName(self) -> str:
2582
+ """Returns the name of the ColorGroup"""
2583
+ ...
2584
+ def SetName(self, groupName: str) -> bool:
2585
+ """Renames ColorGroup to groupName"""
2586
+ ...
2587
+ def GetClipsInTimeline(self, timeline: Timeline | None = None) -> list[TimelineItem]:
2588
+ """Returns a list of TimelineItems in the ColorGroup for the given Timeline"""
2589
+ ...
2590
+ def GetPreClipNodeGraph(self) -> Graph:
2591
+ """Returns the ColorGroup Pre-clip graph"""
2592
+ ...
2593
+ def GetPostClipNodeGraph(self) -> Graph:
2594
+ """Returns the ColorGroup Post-clip graph"""
2595
+ ...
2596
+
2597
+ class Folder:
2598
+ """A media pool folder: its clips, its subfolders and their analysis."""
2599
+ def GetName(self) -> str:
2600
+ """Returns the media folder name"""
2601
+ ...
2602
+ def GetSubFolderList(self) -> list[Folder]:
2603
+ """Returns a list of subfolders in the folder"""
2604
+ ...
2605
+ def GetClipList(self) -> list[MediaPoolItem]:
2606
+ """Returns a list of clips (items) within the folder"""
2607
+ ...
2608
+ def GetIsFolderStale(self) -> bool:
2609
+ """Returns true if folder is stale in collaboration mode"""
2610
+ ...
2611
+ def GetUniqueId(self) -> str:
2612
+ """Returns a unique ID for the media pool folder"""
2613
+ ...
2614
+ def Export(self, filePath: str) -> bool:
2615
+ """Exports the folder as a DRB file to filePath"""
2616
+ ...
2617
+ def TranscribeAudio(self, useSpeakerDetection: bool | None = None, transcribeAsNestedClip = False) -> bool:
2618
+ """Transcribes audio of the MediaPoolItems within the folder and nested folders."""
2619
+ ...
2620
+ def ClearTranscription(self) -> bool:
2621
+ """Clears audio transcription of the MediaPoolItems within the folder and nested folders."""
2622
+ ...
2623
+ def PerformAudioClassification(self) -> bool:
2624
+ """Analyzes and classifies the audio of the MediaPoolItems within the folder and nested folders into categories and subcategories"""
2625
+ ...
2626
+ def ClearAudioClassification(self) -> bool:
2627
+ """Clears audio classification of the MediaPoolItems within the folder and nested folders"""
2628
+ ...
2629
+ def RemoveMotionBlur(self, deblurOption: DeblurOptions | None = None) -> list[list[MediaPoolItem]]:
2630
+ """Apply Motion Deblur on MediaPoolItems in Folder, Returns a list of original to newly created MediaPoolItems"""
2631
+ ...
2632
+ def AnalyzeForIntellisearch(self, identifyFaces: bool, isBetterMode: bool) -> bool:
2633
+ """Perform Intellisearch analysis to all the MediaPoolItems in the folder."""
2634
+ ...
2635
+ def AnalyzeForSlate(self, markerColor: SlateMarkerColor) -> bool:
2636
+ """Perform Slate analysis with current settings and use the stated markerColor to all the MediaPoolItems in the folder."""
2637
+ ...
2638
+
2639
+ class Gallery:
2640
+ """The gallery of a project: its still albums and PowerGrade albums."""
2641
+ def GetAlbumName(self, galleryStillAlbum: GalleryStillAlbum) -> str:
2642
+ """Returns the name of a GalleryStillAlbum object"""
2643
+ ...
2644
+ def SetAlbumName(self, galleryStillAlbum: GalleryStillAlbum, albumName: str) -> bool:
2645
+ """Sets the name of a GalleryStillAlbum object"""
2646
+ ...
2647
+ def GetCurrentStillAlbum(self) -> GalleryStillAlbum:
2648
+ """Returns current album as a GalleryStillAlbum object"""
2649
+ ...
2650
+ def SetCurrentStillAlbum(self, galleryStillAlbum: GalleryStillAlbum) -> bool:
2651
+ """Sets current album to the given GalleryStillAlbum object"""
2652
+ ...
2653
+ def CreateGalleryStillAlbum(self) -> GalleryStillAlbum:
2654
+ """Creates a new gallery still album"""
2655
+ ...
2656
+ def CreateGalleryPowerGradeAlbum(self) -> GalleryStillAlbum:
2657
+ """Creates a new gallery power grade album"""
2658
+ ...
2659
+ def GetGalleryStillAlbums(self) -> list[GalleryStillAlbum]:
2660
+ """Returns the gallery still albums as a list of GalleryStillAlbum objects"""
2661
+ ...
2662
+ def GetGalleryPowerGradeAlbums(self) -> list[GalleryStillAlbum]:
2663
+ """Returns the gallery PowerGrade albums as a list of GalleryStillAlbum objects"""
2664
+ ...
2665
+
2666
+ class GalleryStill:
2667
+ """A still of a gallery album, used as a handle by the GalleryStillAlbum functions."""
2668
+
2669
+ class GalleryStillAlbum:
2670
+ """An album of gallery stills, which can be labelled, imported and exported."""
2671
+ def GetStills(self) -> list[GalleryStill]:
2672
+ """Returns the list of GalleryStill objects in the album"""
2673
+ ...
2674
+ def GetLabel(self, galleryStill: GalleryStill) -> str:
2675
+ """Returns the label of the galleryStill"""
2676
+ ...
2677
+ def SetLabel(self, galleryStill: GalleryStill, label: str) -> bool:
2678
+ """Sets the new label to a GalleryStill object"""
2679
+ ...
2680
+ def ImportStills(self, filePaths: list[str]) -> bool:
2681
+ """Imports GalleryStill from each filePath in the list"""
2682
+ ...
2683
+ def ExportStills(self, galleryStill: list[GalleryStill], folderPath: str, filePrefix: str, format: str) -> bool:
2684
+ """Exports list of GalleryStill objects to a directory"""
2685
+ ...
2686
+ def DeleteStills(self, galleryStill: list[GalleryStill]) -> bool:
2687
+ """Deletes specified list of GalleryStill objects"""
2688
+ ...
2689
+
2690
+ class Graph:
2691
+ """The node graph of a clip or of a color group: its nodes, LUTs and grades. See README.md section 'Cache Mode information'."""
2692
+ def GetNumNodes(self) -> int:
2693
+ """Returns the number of nodes in the graph"""
2694
+ ...
2695
+ def SetLUT(self, nodeIndex: int, lutPath: str) -> bool:
2696
+ """Sets LUT on the node mapping the node index provided, 1 <= nodeIndex <= GetNumNodes()"""
2697
+ ...
2698
+ def GetLUT(self, nodeIndex: int) -> str:
2699
+ """Gets relative LUT path based on the node index provided, 1 <= nodeIndex <= GetNumNodes()"""
2700
+ ...
2701
+ def SetNodeCacheMode(self, nodeIndex: int, cacheValue: CacheMode) -> bool:
2702
+ """Sets the cache mode type on the node mapping the node index provided"""
2703
+ ...
2704
+ def GetNodeCacheMode(self, nodeIndex: int) -> int:
2705
+ """Returns the cache mode type on the node mapping the node index provided"""
2706
+ ...
2707
+ def GetNodeLabel(self, nodeIndex: int) -> str:
2708
+ """Returns the label of the node at nodeIndex"""
2709
+ ...
2710
+ def GetToolsInNode(self, nodeIndex: int) -> list[str]:
2711
+ """Returns toolsList of the tools used in the node indicated by given nodeIndex"""
2712
+ ...
2713
+ def SetNodeEnabled(self, nodeIndex: int, isEnabled: bool) -> bool:
2714
+ """Sets the node at the given nodeIndex to isEnabled, 1 <= nodeIndex <= GetNumNodes()"""
2715
+ ...
2716
+ def ApplyArriCdlLut(self) -> bool:
2717
+ """Applies ARRI CDL and LUT."""
2718
+ ...
2719
+ def ApplyGradeFromDRX(self, path: str, gradeMode: int) -> bool:
2720
+ """Loads a still from given file path and applies grade to graph with gradeMode (0=No keyframes, 1=Source Timecode aligned, 2=Start Frames aligned)"""
2721
+ ...
2722
+ def ResetAllGrades(self) -> bool:
2723
+ """Resets all grades in the graph"""
2724
+ ...
2725
+
2726
+ class MediaStorage:
2727
+ """Browses the volumes of the file system and adds media files to the media pool."""
2728
+ def GetMountedVolumeList(self) -> list[str]:
2729
+ """Returns list of folder paths corresponding to mounted volumes displayed in Resolve's Media Storage"""
2730
+ ...
2731
+ def GetSubFolderList(self, folderPath: str) -> list[str]:
2732
+ """Returns list of folder paths in the given absolute folder path"""
2733
+ ...
2734
+ def GetFileList(self, folderPath: str) -> list[str]:
2735
+ """Returns list of media and file listings in the given absolute folder path"""
2736
+ ...
2737
+ def RevealInStorage(self, path: str) -> bool:
2738
+ """Expands and displays given file/folder path in Resolve's Media Storage"""
2739
+ ...
2740
+ def AddItemListToMediaPool(self, itemInfos: list[MediaStorageItemInfo]) -> list[MediaPoolItem]:
2741
+ """Adds specified file/folder paths from Media Storage into current Media Pool folder. Returns a list of the MediaPoolItems created"""
2742
+ ...
2743
+ def AddClipMattesToMediaPool(self, mediaPoolItem: MediaPoolItem, paths: list[str], stereoEye: str | None = None) -> bool:
2744
+ """Adds specified media files as mattes for the specified MediaPoolItem. stereoEye is 'left' or 'right' for stereo clips"""
2745
+ ...
2746
+ def AddTimelineMattesToMediaPool(self, paths: list[str]) -> list[MediaPoolItem]:
2747
+ """Adds specified media files as timeline mattes in current media pool folder. Returns a list of created MediaPoolItems"""
2748
+ ...
2749
+ def StartCloneMedia(self, sourceDir: str, targetDirs: str | list[str]) -> bool:
2750
+ """Starts cloning media from sourceDir to targetDirs. Use SetCloneToolSettings to configure PreserveFolderName/ChecksumType beforehand."""
2751
+ ...
2752
+ def SetCloneToolSettings(self, cloneToolSettings: CloneToolSettings | None = None) -> bool:
2753
+ """Sets the PreserveFolderName/ChecksumType options used by subsequent StartCloneMedia calls (and by the Clone Tool UI)."""
2754
+ ...
2755
+ def StopCloneMedia(self) -> bool:
2756
+ """Stops the currently in-progress clone job started via StartCloneMedia. Returns False if no clone job is in progress."""
2757
+ ...
2758
+ def GetCloneStatus(self) -> CloneStatus:
2759
+ """Returns a dict with the status of the current (or most recently started) clone job"""
2760
+ ...
2761
+
2762
+ class Fusion: ...
2763
+ class FusionComp: ...
2764
+
2765
+ def scriptapp(app: str) -> Resolve: ...