3 Replies Latest reply on Jan 10, 2011 5:11 PM by areohbee

    Advice using getChildCollectionSets

    Randy_Seattle

      Hi All -- I'm a newbie to the LR SDK and Lua and was hoping for a little advice using catalog:getChildCollectionSets.

       

      First off, is there an easy way to get the length of the array returned? I know I can loop thru a For statement and also see that table:getn is not supported. Just wondering if there was an easier way.

       

      Next - any advice or sample code calling this in LrTasks async statement. I was able to set this up and access the getChildCollectionSets returned array within the async loop, but not sure how to access it outside since it is async and timing/scope (i.e., testing when the async call is finished). A small snippet of code would be appreciated.

       

       

      Thanks....Randy