Where have the export_constants gone for the javascript API

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline
User avatar

ryanfrancesconi

  • Posts: 6
  • Joined: Fri Sep 30, 2022 3:28 pm
  • Real Name: Ryan Francesconi

Where have the export_constants gone for the javascript API

PostFri Apr 07, 2023 2:20 am

I only see undefined for the constants described here:
https://resolvedevdoc.readthedocs.io/en/latest/API_timeline_export.html

I figured these out by testing a range of numbers, but are these actually still in the API or?

Code: Select all
let exportType = {
    EXPORT_AAF: 0,
    EXPORT_DRT: 1,
    EXPORT_FCP_7_XML: 3,
    EXPORT_FCPXML_1_9: 5,
    EXPORT_FCPXML_1_10: 6,
    EXPORT_HDR_10_PROFILE_A: 7,
    EXPORT_HDR_10_PROFILE_B: 8,
    EXPORT_TEXT_CSV: 9,
    EXPORT_TEXT_TAB: 10,
    EXPORT_DOLBY_VISION_VER_2_9: 11,
    EXPORT_DOLBY_VISION_VER_4_0: 12,
    EXPORT_DOLBY_VISION_VER_5_0: 13,
};
Offline
User avatar

roger.magnusson

  • Posts: 3399
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Where have the export_constants gone for the javascript

PostSun Apr 09, 2023 1:44 am

It does indeed look like they forgot something there. Those constants are weird in that in Lua they don't exist in the console until you've accessed them in a script. After that they are available both in the console and in the Electron environment.
Offline
User avatar

roger.magnusson

  • Posts: 3399
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Where have the export_constants gone for the javascript

PostSun Apr 09, 2023 12:52 pm

Another thing that's broken in the Resolve Workflow Integration Plugins Electron environment is that the app will crash if you execute timeline.GrabStill().

The GalleryStill object in Resolve doesn't have any public members and it's making the internal ParseProxyObject method crash with the error: "function list is empty".

GalleryStillAlbum.GetStills() also crashes for the same reason I think.
Offline
User avatar

roger.magnusson

  • Posts: 3399
  • Joined: Wed Sep 23, 2015 4:58 pm

Re: Where have the export_constants gone for the javascript

PostThu May 04, 2023 10:50 am

The issue with GalleryStill in the Electron environment has been fixed in 18.5 Beta 2.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 35 guests