Lightroom SDK (4.1): catalog:getFolderByPath( path ) returning messed up folder object.

  • 1
  • Problem
  • Updated 6 years ago
This problem is repeatable.

rename a folder and try and get the folder under the new name - it's gotten.

Unfortunately, the getPhotos & getChildren methods of the folder object return nil, but they shouldn't.

Restarting Lightoom clears this condition (after restarting Lightroom, get-photos & get-children will return proper arrays).

Rename the folder back to what it was and try again, and getFolderByPath returns a folder that returns the correct arrays when calling getPhotos or getChildren,without restarting LIghtroom.

Conclusion: when renaming a folder in Lightroom, not all parts of Lightroom get the memo, such that catalog:getFolderByPath returns a messed up folder object until Lightroom is restarted.

R
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes

Posted 6 years ago

  • 1

Be the first to post a reply!