Did you prefix them with 'LR_' ?
In case you didn't know, in a preset, there is:
which need to be translated to
in the export session before beginning the export.
Here's my code:
function TourBuzzUploadTask.updateExportSettings (exportSettings)
exportSettings.LR_videoFormat = '4e49434b-4832-3634-fbfb-fbfbfbfbfbfb'
exportSettings.LR_videoPreset = 'SIZE_max'
Does your code work?
Video export is confusing. I'm doing my first video export and could not find the info I need in the documentation either.
Here's my code for determining the target video extension (yuck):
for i, vp in ipairs( LrExportSettings.videoExportPresets() ) do
local name = LrStringUtils.lower( vp:name() ) -- e.g. "Max".
if self.exportParams.LR_export_videoPreset:find( name, 1, true ) then -- e.g. "SIZE_max"
destExtension = vp:extension()
A totally ad-hoc/empirical hack, but it was the only thing I could find that worked.
There has got to be a better way!(?) - any ideas???