1 Reply Latest reply on Feb 6, 2012 6:34 AM by johnrellis

    Lightroom namespace LrCollection

    jlarysz

      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?

        • 1. Re: Lightroom namespace LrCollection
          johnrellis Most Valuable Participant

          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().