rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Wed, Aug 28, 2013 11:01 PM

Closed

Lightroom SDK: api documentation error

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.
No Responses!