-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResolveAPI.d.ts
2296 lines (1931 loc) · 67.5 KB
/
ResolveAPI.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
//Davinci Resolve Version: 18.1.5
// Some undocumented detailed types were taken from: https://gist.github.com/bradcordeiro/2f00120fad252a1b2bffcb882c9c941b
// **Undocumented** types were taken from: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=113040
/** Enum types for DaVinci Resolve related things. */
declare namespace ResolveEnums {
/** All pages. @enum {string} */
declare enum Pages {
Media = "media",
Cut = "cut",
Edit = "edit",
Fusion = "fusion",
Color = "color",
Fairlight = "fairlight",
Deliver = "deliver",
None = "none",
}
/** All track types. @enum {string} */
declare enum TrackType {
Audio = "audio",
Video = "video",
Subtitle = "subtitle"
}
/** All timeline generators. @enum {string} */
declare enum TimelineGenerator {
__10_Step = '10 Step',
__100mV_Steps = '100mV Steps',
__BT2111_Color_Bar_HLG_Narrow = 'BT.2111 Color Bar HLG Narrow',
__BT2111_Color_Bar_PQ_Full = 'BT.2111 Color Bar PQ Full',
__BT2111_Color_Bar_PQ_Narrow = 'BT.2111 Color Bar PQ Narrow',
__EBU_Color_Bar = 'EBU Color Bar',
__Four_Color_Gradient = 'Four Color Gradient',
__Grey_Scale = 'Grey Scale',
__SMPTE_Color_Bar = 'SMPTE Color Bar',
__Solid_Color = 'Solid Color',
__Window = 'Window',
__YCbCr_Ramp = 'YCbCr Ramp'
}
/** All fusion generators. @enum {string} */
declare enum FusionGenerator {
__Contours = 'Contours',
__Noise_Gradient = 'Noise Gradient',
__Paper = 'Paper',
__Texture_Background = 'Texture Background',
}
/** All title names. @enum {string} */
declare enum TitleNames {
__Left_Lower_Third = 'Left Lower Third',
__Middle_Lower_Third = 'Middle Lower Third',
__Right_Lower_Third = 'Right Lower Third',
__Scroll = 'Scroll',
__Text = 'Text'
}
/** All timeline item version types. @enum {number} */
declare enum TimelineItemVersionType {
Local = 0,
Remote = 1
}
/** All grade modes. @enum {number} */
declare enum GradeMode {
'No keyframes' = 0,
'Source Timecode aligned' = 1,
'Start Frames aligned' = 2
}
/** All still export formats. @enum {string} */
declare enum StillExportFormat {
DPX = 'dpx',
CIN = 'cin',
TIF = 'tif',
JPG = 'jpg',
PNG = 'png',
PPM = 'ppm',
BMP = 'bmp',
XPM = 'xpm',
}
/** All clip colors. @enum {string} */
declare enum ClipColor {
Apricot = "Apricot",
Beige = "Beige",
Blue = "Blue",
Brown = "Brown",
Chocolate = "Chocolate",
Green = "Green",
Lime = "Lime",
Navy = "Navy",
Olive = "Olive",
Orange = "Orange",
Pink = "Pink",
Purple = "Purple",
Tan = "Tan",
Teal = "Teal",
Violet = "Violet",
Yellow = "Yellow",
}
/** All marker colors. @enum {string} */
declare enum MarkerColor {
Blue = "Blue",
Cocoa = "Cocoa",
Cream = "Cream",
Cyan = "Cyan",
Fushsia = "Fushsia",
Green = "Green",
Lavender = "Lavender",
Lemon = "Lemon",
Mint = "Mint",
Pink = "Pink",
Purple = "Purple",
Red = "Red",
Rose = "Rose",
Sand = "Sand",
Sky = "Sky",
Yellow = "Yellow",
}
/** All flag colors. @enum {string} */
declare enum FlagColor {
Blue = "Blue",
Cocoa = "Cocoa",
Cream = "Cream",
Cyan = "Cyan",
Fushsia = "Fushsia",
Green = "Green",
Lavender = "Lavender",
Lemon = "Lemon",
Mint = "Mint",
Pink = "Pink",
Purple = "Purple",
Red = "Red",
Rose = "Rose",
Sand = "Sand",
Sky = "Sky",
Yellow = "Yellow",
}
/** All Dynamic Zoom Ease Settings. @enum {number} */
declare enum DynamicZoomEaseSetting {
DYNAMIC_ZOOM_EASE_LINEAR = 0,
DYNAMIC_ZOOM_EASE_IN,
DYNAMIC_ZOOM_EASE_OUT,
DYNAMIC_ZOOM_EASE_IN_AND_OUT,
};
/** All Composite Mode Settings. @enum {number} */
declare enum CompositeModeSetting {
COMPOSITE_NORMAL = 0,
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,
};
/** All Retime Process Settings. @enum {number} */
declare enum RetimeProcessSetting {
RETIME_USE_PROJECT = 0,
RETIME_NEAREST,
RETIME_FRAME_BLEND,
RETIME_OPTICAL_FLOW,
};
/** All Motion Estimation Settings. @enum {number} */
declare enum MotionEstimationSetting {
MOTION_EST_USE_PROJECT = 0,
MOTION_EST_STANDARD_FASTER,
MOTION_EST_STANDARD_BETTER,
MOTION_EST_ENHANCED_FASTER,
MOTION_EST_ENHANCED_BETTER,
MOTION_EST_SPEED_WRAP,
};
/** All Scaling Settings. @enum {number} */
declare enum ScalingSetting {
SCALE_USE_PROJECT = 0,
SCALE_CROP,
SCALE_FIT,
SCALE_FILL,
SCALE_STRETCH,
};
/** All Resize Filter Settings. @enum {number} */
declare enum ResizeFilterSetting {
RESIZE_FILTER_USE_PROJECT = 0,
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,
};
/** All Timeline Export Types. @enum {number} */
declare enum TimelineExportType {
EXPORT_AAF,
EXPORT_DRT,
EXPORT_EDL,
EXPORT_FCP_7_XML,
EXPORT_FCPXML_1_3,
EXPORT_FCPXML_1_4,
EXPORT_FCPXML_1_5,
EXPORT_FCPXML_1_6,
EXPORT_FCPXML_1_7,
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,
}
/** All Timeline Export Sub Types. @enum {number} */
declare enum TimelineExportSubType {
EXPORT_NONE,
EXPORT_AAF_NEW,
EXPORT_AAF_EXISTING,
EXPORT_CDL,
EXPORT_SDL,
EXPORT_MISSING_CLIPS
}
}
/**
* dbInfo is a type that is used to specify the database type and name.
* and optionally the IP address of the database server.
*/
declare type dbInfo = {
DbType: 'Disk' | 'PostgreSQL';
DbName: string;
IpAdress?: string = '127.0.0.1';
}
/** A Render preset type. */
declare type Preset = string;
/** A Render job. */
declare type RenderJob = {
AudioCodec: string
AudioSampleRate: number
VideoFormat: string
IsExportAudio: boolean
ExportAlpha: boolean
FormatHeight: number
FrameRate: string
VideoCodec: string
FormatWidth: number
MarkOut: number
JobId: string
MarkIn: number
TargetDir: string
IsExportVideo: boolean
AudioBitDepth: number
TimelineName: string
OutputFilename: string
PixelAspectRatio: number
RenderMode: string
PresetName: string
RenderJobName: string
};
/** Settings for rendering. */
declare type RenderSettings = {
/** (when set True, the settings MarkIn and MarkOut are ignored) */
SelectAllFrames?: boolean;
MarkIn?: number;
MarkOut?: number;
TargetDir?: string;
CustomName?: string;
/** 0 - Prefix, 1 - Suffix. */
UniqueFilenameStyle?: 0 | 1;
ExportVideo?: boolean;
ExportAudio?: boolean;
FormatWidth?: number;
FormatHeight?: number;
/** (examples: 23.976, 24) */
FrameRate?: number;
/** (for SD resolution: “16_9” or “4_3”) (other resolutions: “square” or “cinemascope”) */
PixelAspectRatio?: string
/**
* possible values for current codec (if applicable):
* * 0 (int) - will set quality to automatic
* * [1 -> MAX] (int) - will set input bit rate
* * [“Least”, “Low”, “Medium”, “High”, “Best”] (String) - will set input quality level
*/
VideoQuality?: 0 | 1 | Number.MAX_SAFE_INTEGER |"Least" | "Low" | "Medium" | "High" | "Best";
/** (example: “aac”) */
AudioCodec?: string;
AudioBitDepth?: number;
AudioSampleRate?: number;
/** (example: “Same as Project”, “AstroDesign”) */
ColorSpaceTag?: string;
/** (example: “Same as Project”, “ACEScct”) */
GammaTag?: string;
ExportAlpha?: boolean;
/** (example: “Main10”). Can only be set for H.264 and H.265. */
EncodingProfile?: string;
/** Can only be set for H.264 */
MultiPassEncode?: boolean;
/** 0 - Premultipled, 1 - Straight. Can only be set if “ExportAlpha” is true. */
AlphaMode?: 0 | 1;
/** Only supported by QuickTime and MP4 formats. */
NetworkOptimization?: boolean;
};
/** A Render format. */
declare type RenderFormat = {
Format: string;
FileExtension: string;
};
/** A Render codec. */
declare type RenderCodec = {
CodecDescription: string;
CodecName: string;
};
/** The status of a render job. */
declare type RenderJobStatus = {
CompletionPercentage: number
JobStatus: 'Ready' | 'Rendering' | 'Cancelled' | 'Complete' | 'Failed',
TimeTakenToRenderInMs?: number
EstimatedTimeRemainingInMs?: number
Error?: string
};
/** Resolution type. */
declare type Resolution = {
width: number;
height: number;
};
/** Clip Information */
declare type ClipInfo = {
mediaPoolItem?: MediaPoolItem;
startFrame?: number;
endFrame?: number;
mediaType?: number = 1 | 2;
//**Undocumented**//
trackIndex?: number;
recordFrame?: number;
}
/** Timeline Import Options */
declare type TimelineImportOptions = {
timelineName: string;
importSourceClips: boolean;
sourceClipsPath: string;
sourceClipsFolders: Folder[];
interlaceProcessing: boolean;
}
/** Type for a marker. */
declare type Marker = {
frameId: number;
color: MarkerColor;
name: string;
note: string;
duration: number;
customData: string;
};
/**
* CDL type.
*/
declare type CDL = {
NodeIndex: string;
Slope: string
Offset: string;
Power: string;
Saturation: string;
}
/** A Take. */
declare type Take = {
startFrame: number;
endFrame: number;
mediaPoolItem: MediaPoolItem;
}
/** Properties for a timeline item. */
declare type TimelineItemProperties = {
Pan: number;
Tilt: number;
ZoomX: number;
ZoomY: number;
/** If ZoomX and ZoomY are linked together. */
ZoomGang: boolean;
RotationAngle: number;
AnchorPointX: number;
AnchorPointY: number;
Pitch: number;
Yaw: number;
FlipX: boolean;
FlipY: boolean;
CropLeft: number;
CropRight: number;
CropTop: number;
CropBottom: number;
CropSoftness: number;
CropRetain: boolean;
DynamicZoomEase: DynamicZoomEaseSetting;
CompositeMode: CompositeModeSetting;
Opacity: number;
Distortion: number;
RetimeProcess: RetimeProcessSetting;
MotionEstimation: MotionEstimationSetting;
Scaling: ScalingSetting;
ResizeFilter: ResizeFilterSetting;
};
/**
* Properties for a Project.
* Most Properties are Readonly.
*/
declare type ProjectProperties = {
audioCaptureNumChannels: string,
audioOutputHasTimecode: string,
audioPlayoutNumChannels: string,
colorAcesGamutCompressType: string,
colorAcesIDT: string,
colorAcesNodeLUTProcessingSpace: string,
colorAcesODT: string,
colorGalleryStillsLocation: string,
colorGalleryStillsNamingCustomPattern: string,
colorGalleryStillsNamingEnabled: string,
colorGalleryStillsNamingPattern: string,
colorGalleryStillsNamingWithStillNumber: string,
colorKeyframeDynamicsEndProfile: string,
colorKeyframeDynamicsStartProfile: string,
colorLuminanceMixerDefaultZero: string,
colorScienceMode: string,
colorSpaceInput: string,
colorSpaceInputGamma: string,
colorSpaceOutput: string,
colorSpaceOutputGamma: string,
colorSpaceOutputGamutMapping: string,
colorSpaceOutputGamutSaturationKnee: string,
colorSpaceOutputGamutSaturationMax: string,
colorSpaceOutputToneLuminanceMax: string,
colorSpaceOutputToneMapping: string,
colorSpaceTimeline: string,
colorSpaceTimelineGamma: string,
colorUseBGRPixelOrderForDPX: string,
colorUseContrastSCurve: string,
colorUseLegacyLogGrades: string,
colorUseLocalVersionsAsDefault: string,
colorUseStereoConvergenceForEffects: string,
colorVersion10Name: string,
colorVersion1Name: string,
colorVersion2Name: string,
colorVersion3Name: string,
colorVersion4Name: string,
colorVersion5Name: string,
colorVersion6Name: string,
colorVersion7Name: string,
colorVersion8Name: string,
colorVersion9Name: string,
graphicsWhiteLevel: string,
hdr10PlusControlsOn: string,
hdrDolbyControlsOn: string,
hdrDolbyMasterDisplay: string,
hdrDolbyVersion: string,
hdrMasteringLuminanceMax: string,
hdrMasteringOn: string,
imageDeinterlaceQuality: string,
imageEnableFieldProcessing: string,
imageMotionEstimationMode: string,
imageMotionEstimationRange: string,
imageResizeMode: string,
imageResizingGamma: string,
imageRetimeInterpolation: string,
inputDRT: string,
inputDRTSatRolloffLimit: string,
inputDRTSatRolloffStart: string,
isAutoColorManage: string,
limitAudioMeterAlignLevel: string,
limitAudioMeterDisplayMode: string,
limitAudioMeterHighLevel: string,
limitAudioMeterLoudnessScale: string,
limitAudioMeterLowLevel: string,
limitAudioMeterLUFS: string,
limitBroadcastSafeLevels: string,
limitBroadcastSafeOn: string,
limitSubtitleCaptionDurationSec: string,
limitSubtitleCPL: string,
outputDRT: string,
outputDRTSatRolloffLimit: string,
outputDRTSatRolloffStart: string,
perfAutoRenderCacheAfterTime: string,
perfAutoRenderCacheComposite: string,
perfAutoRenderCacheEnable: string,
perfAutoRenderCacheFuEffect: string,
perfAutoRenderCacheTransition: string,
perfCacheClipsLocation: string,
perfOptimisedCodec: string,
perfOptimisedMediaOn: string,
perfOptimizedResolutionRatio: string,
perfProxyMediaMode: string,
perfProxyResolutionRatio: string,
perfRenderCacheCodec: string,
perfRenderCacheMode: string,
rcmPresetMode: string,
separateColorSpaceAndGamma: string,
superScale: SuperScaleSetting,
superScaleNoiseReduction: string,
superScaleSharpness: string,
timelineDropFrameTimecode: string,
timelineFrameRate: number,
timelineFrameRateMismatchBehavior: string,
timelineInputResMismatchBehavior: string,
timelineInputResMismatchCustomPreset: string,
timelineInputResMismatchUseCustomPreset: string,
timelineInterlaceProcessing: string,
timelineOutputPixelAspectRatio: string,
timelineOutputResMatchTimelineRes: string,
timelineOutputResMismatchBehavior: string,
timelineOutputResMismatchCustomPreset: string,
timelineOutputResMismatchUseCustomPreset: string,
timelineOutputResolutionHeight: string,
timelineOutputResolutionWidth: string,
timelinePixelAspectRatio: string,
timelinePlaybackFrameRate: string,
timelineResolutionHeight: string,
timelineResolutionWidth: string,
timelineSaveThumbsInProject: string,
timelineWorkingLuminance: string,
timelineWorkingLuminanceMode: string,
useCATransform: string,
useColorSpaceAwareGradingTools: string,
useInverseDRT: string,
videoCaptureCodec: string,
videoCaptureFormat: string,
videoCaptureIngestHandles: string,
videoCaptureLocation: string,
videoCaptureMode: string,
videoDataLevels: string,
videoDataLevelsRetainSubblockAndSuperWhiteData: string
videoDeckAdd32Pulldown: string,
videoDeckBitDepth: string,
videoDeckFormat: string,
videoDeckNonAutoEditFrames: string,
videoDeckOutputSyncSource: string,
videoDeckPrerollSec: string,
videoDeckSDIConfiguration: string,
videoDeckUse444SDI: string,
videoDeckUseAudoEdit: string,
videoDeckUseStereoSDI: string,
videoMonitorBitDepth: string,
videoMonitorFormat: string,
videoMonitorMatrixOverrideFor422SDI: string,
videoMonitorScaling: string,
videoMonitorSDIConfiguration: string,
videoMonitorUse444SDI: string,
videoMonitorUseHDROverHDMI: string,
videoMonitorUseLevelA: string,
videoMonitorUseMatrixOverrideFor422SDI: string,
videoMonitorUseStereoSDI: string,
videoPlayoutAudioFramesOffset: string,
videoPlayoutBatchHeadDuration: string,
videoPlayoutBatchTailDuration: string,
videoPlayoutLTCFramesOffset: string,
videoPlayoutMode: string,
videoPlayoutShowLTC: string,
videoPlayoutShowSourceTimecode: string,
};
/** Properties of a media pool item */
declare type MediaPoolItemProperties = {
'Alpha mode': string
'Audio Bit Depth': string
'Audio Ch': string
'Audio Codec': string
'Audio Offset': string
'Bit Depth': string
'Camera #': string
'Clip Color': ClipColor
'Clip Name': string
'Data Level': string
'Date Added': string
'Date Created': string
'Date Modified': string
'Drop frame': string
'Enable Deinterlacing': string
'End TC': string
'Field Dominance': string
'File Name': string
'File Path': string
'Good Take': string
'H-FLIP': string
'Input Color Space': string
'Input LUT': string
'Input Sizing Preset': string
'Noise Reduction': string
'Offline Reference': string
'Proxy Media Path': string
'Reel Name': string
'Roll/Card': string
'S3D Sync': string,
'Sample Rate': string
'Slate TC': string
'Start KeyKode': string
'Start TC': string
'Super Scale': 0 | 1 | 2 | 3 | 4,
'Synced Audio': string
'V-FLIP': string
'Video Codec': string
Angle: string
Comments: string
Description: string
Duration: string
End: string
Flags: FlagColor[]
Format: string
FPS: number,
Frames: string
IDT: string
In: string
Keyword: string
Out: string
PAR: string
Proxy: string
Resolution: string
Scene: string
Sharpness: string
Shot: string
Start: string
Take: string
Type: string
Usage: string
};
/** The main Resolve object. */
declare type Resolve = {
/**
* Returns the Fusion object. Starting point for Fusion scripts.
*
* @example
* ```ts
* const fusion: Fusion = resolve.Fusion();
* ```
*/
Fusion(): Fusion;
/**
* Returns the media storage object to query and act on media locations.
*
* @example
* ```ts
* const mediaStorage: MediaStorage = resolve.GetMediaStorage();
* ```
*/
GetMediaStorage(): MediaStorage;
/**
* Returns the project manager object for currently open database.
*
* @example
* ```ts
* const projectManager: ProjectManager = resolve.GetProjectManager();
* ```
*/
GetProjectManager(): ProjectManager;
/**
* Switches to indicated page in DaVinci Resolve
* @param pageName Name of the page to switch to.
*
* @example
* ```ts
* resolve.OpenPage(ResolveEnums.Pages.Edit);
* ```
*/
OpenPage(pageName: ResolveEnums.Pages): boolean;
/**
* Returns the page currently displayed in the main window.
*
* @example
* ```ts
* const currentPage: ResolveEnums.Pages = resolve.GetCurrentPage();
* ```
*/
GetCurrentPage(): ResolveEnums.Pages;
/**
* Returns product name.
*
* @example
* ```ts
* const productName: string = resolve.GetProductName();
* ```
*/
GetProductName(): string;
/**
* Returns list of product version fields in [major, minor, patch, build, suffix] format.
*
* @example
* ```ts
* const version: number[] = resolve.GetVersion();
* ```
*/
GetVersion(): number[];
/**
* Returns product version in “major.minor.patch[suffix].build” format.
*
* @example
* ```ts
* const versionString: string = resolve.GetVersionString();
* ```
*/
GetVersionString(): string;
/**
* Loads UI layout from saved preset named ‘presetName’.
* @param presetName Name of the preset to load.
*
* @example
* ```ts
* resolve.LoadLayoutPreset('MyLayout');
* ```
*/
LoadLayoutPreset(presetName: string): boolean;
/**
* Overwrites preset named ‘presetName’ with current UI layout.
* @param presetName Name of the preset to update.
*
* @example
* ```ts
* resolve.UpdateLayotPreset('MyLayout');
* ```
*/
UpdateLayotPreset(presetName: string): boolean;
/**
* Exports preset named ‘presetName’ to path ‘presetFilePath’.
* @param presetName Name of the preset to export.
*
* @example
* ```ts
* resolve.ExportLayoutPreset('MyLayout', 'C:\\MyLayout\\');
* ```
*/
ExportLayoutPreset(presetName: string, presetFilePath: string): boolean;
/**
* Deletes preset named ‘presetName’.
* @param presetName Name of the preset to delete.
*
* @example
* ```ts
* resolve.DeleteLayoutPreset('MyLayout');
* ```
*/
DeleteLayoutPreset(presetName: string): boolean;
/**
* Saves current UI layout as a preset named ‘presetName’.
* @param presetName Name of the preset to save.
*
* @example
* ```ts
* resolve.SaveLayoutPreset('MyLayout');
* ```
*/
SaveLayoutPreset(presetName: string): boolean;
/**
* Imports preset from path ‘presetFilePath’. The optional argument ‘presetName’ specifies how the preset shall be named. If not specified, the preset is named based on the filename.
* @param presetFilePath Path to the preset file.
* @param presetName Name of the preset to import.
*
* @example
* ```ts
* resolve.ImportLayoutPresets('C:\\MyLayout\\');
* ```
*/
ImportLayoutPresets(presetFilePath: string, presetName?: string): boolean;
/**
* Quits the Resolve App.
*
* @example
* ```ts
* resolve.Quit();
* ```
*/
Quit(): void;
/**
* **Undocumented**
*/
GetShowAllVideoFrames(): boolean;
/**
* **Undocumented**
*
* @param enabled
*/
SetShowAllVideoFrames(enabled: boolean): boolean;
/**
* **Undocumented**
*/
GetSourceViewerMode(): boolean;
/**
* **Undocumented**
*
* @param enabled
*/
SetSourceViewerMode(mode: string): boolean;
/**
* **Undocumented**
* Does some kind of automated color page testing
*/
TriggerCtrKTest(): boolean;
/**
* **Undocumented**
*/
SetHighPriority(): any;
};
declare type ProjectManager = {
/**
* Archives project to provided file path with the configuration as provided by the optional arguments
*
* @param projectName Name of the project to archive
* @param filePath Path to the archive file
* @param isArchiveSrcMedia Archive source media
* @param isArchiveRenderCache Archive render cache
* @param isArchiveProxyMedia Archive proxy media
*
* @example
* ```ts
* projectManager.ArchiveProject('MyProject', 'C:\\MyProject\\MyProject.drp');
* ```
*/
ArchiveProject(projectName: string, filePath: string, isArchiveSrcMedia: boolean = true, isArchiveRenderCache: boolean = true, isArchiveProxyMedia: boolean = false): void;
/**
* Creates and returns a project if projectName (string) is unique, and None if it is not.
*
* @param projectName Name of the project to create
*
* @example
* ```ts
* const project: Project = projectManager.CreateProject('MyProject');
*/
CreateProject(projectName: string): Project;
/**
* Delete project in the current folder if not currently loaded
*/
DeleteProject(projectName: string): boolean;
/**
* Loads and returns the project with name = projectName (string) if there is a match found, and None if there is no matching Project.
*/
LoadProject(projectName: string): Project;
/**
* Returns the currently loaded Resolve project.
*/
GetCurrentProject(): Project;
/**
* Saves the currently loaded project with its own name. Returns True if successful.
*/
SaveProject(): boolean;
/**
* Closes the specified project without saving.
*/
CloseProject(project: string): boolean;
/**
* Creates a folder if folderName (string) is unique.
*/
CreateFolder(folderName: string): boolean;
/**
* Deletes the specified folder if it exists. Returns True in case of success.
*/
DeleteFolder(folderName: string): boolean;
/**
* Returns a list of project names in current folder.
*/
GetProjectListInCurrentFolder(): string[];
/**
* Returns a list of folder names in current folder.
*/
GetFolderListInCurrentFolder(): string[];
/**
* Opens root folder in database.
*/
GotoRootFolder(): boolean;
/**
* Opens parent folder of current folder in database if current folder has parent.
*/
GotoParentFolder(): boolean;
/**
* Returns the current folder name.
*/
GetCurrentFolder(): string;
/**
* Opens folder under given name.