Lightroom SDK: api documentation error

  • 1
  • Problem
  • Updated 5 years ago
LrExportSession.addVideoExportPresets

_PLUGIN in example is misplaced. Instead of:

LrExportSettings.addVideoExportPresets( {
[ 'My h.264' ] = {
-- The format identifier for the video export format that this preset
-- corresponds to. This identifier must be equal to the 'formatName'
-- entry in one of the entries in the table returned by
-- LrExportSettings.supportableVideoExportFormats, i.e. 'h.264'.
format = 'h.264',

-- Must be an absolute path
presetPath = LrPathUtils.child( _PLUGIN.path, 'mypreset.epr' ),

-- To be displayed as target info in export dialog.
targetInfo = 'my preset target info',
}, _PLUGIN
} )

it should be

LrExportSettings.addVideoExportPresets( {
[ 'My h.264' ] = {
-- The format identifier for the video export format that this preset
-- corresponds to. This identifier must be equal to the 'formatName'
-- entry in one of the entries in the table returned by
-- LrExportSettings.supportableVideoExportFormats, i.e. 'h.264'.
format = 'h.264',

-- Must be an absolute path
presetPath = LrPathUtils.child( _PLUGIN.path, 'mypreset.epr' ),

-- To be displayed as target info in export dialog.
targetInfo = 'my preset target info',
},
}, _PLUGIN )

i.e. _PLUGIN needs to be moved.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 372 Reply Likes

Posted 5 years ago

  • 1

Be the first to post a reply!