Skip to main content
Participant
February 6, 2012
Question

Lightroom namespace LrCollection

  • February 6, 2012
  • 1 reply
  • 632 views

I'm baffled. I want to get information about the currently active collection; it seems that I can't import the class "LrCollection"  and I have to access it from the LrCatalog object. Does anyone have a code snippet to show me how to do that?

This topic has been closed for replies.

1 reply

johnrellis
Legend
February 6, 2012

By "currently active collection", do you mean the collection that is the current target collection (right-click a collection and do Set as Target Collection)?  If so, I don't know of any way to get the current target collection via the SDK.

If you mean the one or more collections that are set as the current sources (the collections currently being viewed), you can get them via catalog:getActiveSources().