Copy link to clipboard
Copied
local catalog = import "LrApplication".activeCatalog()
local a = catalog:getActiveSources()
any thoughts on why getActiveSources() here is returning a table of nils? the count of items in the table is correct it's just that they're all nils.
thanks.
Copy link to clipboard
Copied
I just tested it on CC 2015.12, Mac and Windows, in Library and Develop modes, didn't see any obvious problems in my configurations. Some variables to examine:
- Develop, Library, or some other mode?
- Which sources are selected?
- Does it happen with a different catalog?
Copy link to clipboard
Copied
Library, one or more sources selected, doesn't seem fussy about type; folder, collection, publish service. I'll need to make another catalog to check when I get home.
2015.10.1 Mac. Just upgraded 2015.12 release. same thing.
Copy link to clipboard
Copied
I was indexing the returned table starting at zero. How embarrassing was that.
sorry for the noise.
Copy link to clipboard
Copied
Not embarrassing at all, given the SDK development tools available.