rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Sun, Oct 2, 2011 11:04 PM

Closed

Lightroom SDK: allow objects for export & export filter

Presently one must pass procedural function names for each export/filter hook.

For those of us using object-oriented methodology, it would be favorable to be able to return a class or object instead of a list of functions.

For example, in an export filter implementation file:

Instead of this:
return {
exportPresetFields = exportPresetFields,
startDialog = startDialog,
sectionForFilterInDialog = sectionForFilterInDialog,
shouldRenderPhoto = shouldRenderPhoto,
postProcessRenderedPhotos = postProcessRenderedPhotos
}

This:
return {
object = myExportFilter
}

Or:
return {
class = MyExportFilterClass,
constructor = MyExportFilterClass.new,
}

The difference is whether the export functions are called as methods or not - any way an object could be shoe-horned in would be fine.

(this concept also applies to other cases where procedural function callbacks are being returned to Lightroom)
No Responses!