rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Wed, Sep 14, 2011 1:04 AM

Closed

Lightroom SDK: setActiveSources does not work if one source is folder and the other source is collection.

catalog:setActiveSources does not work if one source is folder and the other source is collection.

One can set active sources this way using the keyboard/mouse, but not using the API.

Its a problem, if a plugin is to restore sources to the way the user had them before doing something that required changing active sources.

Champion

 • 

6K Messages

 • 

103.7K Points

9 y ago

Not fixed in LR 5 Beta :-(

Champion

 • 

6K Messages

 • 

103.7K Points

7 y ago

While not technically a bug, since this restriction is documented, it is surely a design misfeature. Surely it's reasonable to expect that setActiveSources(getActiveSources()) would work and set the sources to their current state?

1.3K Messages

 • 

22.5K Points

5 y ago

catalog:setActiveSources( "entire_library" ) seems to work, but is not documented.

catalog:setActiveSources( "kAllPhotos" ) seems to be documented, but does not work.

Is that right?

Champion

 • 

6K Messages

 • 

103.7K Points

The value catalog.kAllPhotos is documented (it is "entire_library").  I.e. 

catalog:setActiveSources (catalog.kAllPhotos)

Some undocumented values for getActiveSources() setActiveSources():

"synced_files"  (shown as "All Synced Photographs" in the UI)
"sync_duplicate_virtual_copies" (shown as "Synced Duplicates")

https://feedback.photoshop.com/photoshop_family/topics/lightroom-sdk-catalog-getactivesources-return...