• Global community
    • Language:
      • Deutsch
      • English
      • EspaƱol
      • FranƧais
      • PortuguĆŖs
  • ę—„ęœ¬čŖžć‚³ćƒŸćƒ„ćƒ‹ćƒ†ć‚£
    Dedicated community for Japanese speakers
  • ķ•œźµ­ ģ»¤ė®¤ė‹ˆķ‹°
    Dedicated community for Korean speakers
Exit
0

catalog:getActiveSources() returning an table of nils

Engaged ,
Jul 20, 2017 Jul 20, 2017

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.

TOPICS
SDK

Views

424

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 20, 2017 Jul 20, 2017

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? 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 20, 2017 Jul 20, 2017

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

I was indexing the returned table starting at zero. How embarrassing was that.

sorry for the noise.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 21, 2017 Jul 21, 2017

Copy link to clipboard

Copied

LATEST

Not embarrassing at all, given the SDK development tools available.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines