rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Sat, Nov 10, 2012 9:12 AM

Closed

Solved

Lightroom (SDK) 4.3RC1: catalog:batchGetRawMetadata( photosAndVideos, nil ) -- error

This code was working, up through Lr4.2:

catalog:batchGetRawMetadata( union ) -- nil should mean: all metadata.
(note: union is a valid array of LrPhoto objects).

but in Lr4.3RC1, that code results in an error: bad param #1 to ipairs - expected table, but is nil... - or something very close to that.

In Lr4.3RC1, I'm having to specify all data of interest, e.g.
catalog:batchGetRawMetadata( union, { 'dateTimeOriginal', 'isVirtualCopy' } )

Note: batchGetFormattedMetadata does *not* have the same problem, i.e. this code does not cause error:

catalog:batchGetFormattedMetadata( union ) -- works.

Adobe: I hope you can fix prior to final release.

Thanks,
Rob

Champion

 • 

6K Messages

 • 

103.7K Points

9 y ago

I encountered this same bug with one of my plugins. I hope that this can be fixed in the final release, since there are likely a number of plugins that will break. In addition, the SDK documentation is incomplete, so the only way of discovering the fields that are actually supported is by passing "nil".

7 Messages

 • 

192 Points

9 y ago

I can also reproduce this issue.

Champion

 • 

6K Messages

 • 

103.7K Points

9 y ago

Rob wrote, "Note: batchGetFormattedMetadata does *not* have the same problem".

Hmm, just now catalog:batchGetFormattedMetadata (photos, nil) failed with the same error message.

But photo:getFormattedMetadata (nil) and photo:getRawMetadata (nil) still work.

4.5K Messages

 • 

76.3K Points

It may be photo/data dependent. Sounds like formatted version needs to be fixed too.

4.5K Messages

 • 

76.3K Points

9 y ago

Fixed in Lr5b - thank you Adobe!

4.5K Messages

 • 

76.3K Points

7 y ago

Still working @Lr5.6 - unless John or Matt objects, I think this can be marked "fixed".