• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
4

P: Add SDK support for moving photos between folders in the catalog

Community Beginner ,
Dec 22, 2022 Dec 22, 2022

Copy link to clipboard

Copied

When using the Lightroom Classic SDK it would be great to be able to move photos in the catalog between folders programmatically.

 

A simple example would be for writing a plugin that moves selected photos between parent catalog folders, while maintainig folder structure (to move files between disks).

 

While it is possible to create folders and move disk files using `LrFileUtils`, any catalog photo moved that way ends up as 'missing' in the catalog because their disk location is changed by `LrFileUtils` but the photo `path` in the catalog is not updated.

 

It is possible to read a photo's path using `photo:getRawMetadata("path")`, provided by `LrPhoto`, but it is not possible to change a photo's path using `photo:setRawMetadata("path")` because `path` is not a valid key for writing back to the catalog photo.

 

So in summary, it is currently not possible to move a photo between catalog folders in a Lightroom Classic catalog using the SDK.

 `LrFileUtils` does not update the photo path in the catalog upon moving it on disk, and `LrPhoto` can't be used to update a photo path on disk using the SDK.

 

Please consider adding support for that operation to the SDK.

Thank you.

Idea No status
TOPICS
SDK

Views

177

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
2 Comments
LEGEND ,
Dec 22, 2022 Dec 22, 2022

Copy link to clipboard

Copied

There was a years-old feature request for this (and to delete photos from the catalog) in the old feedback forum, but apparently it didn't get copied over when Adobe transitioned to the new forum platform.

Votes

Translate

Translate

Report

Report
Community Beginner ,
Oct 05, 2023 Oct 05, 2023

Copy link to clipboard

Copied

LATEST

While finally automating our complete Lightroom workflow top to bottom, I now discover there is no photo:move() and photo:delete().

I am so extremely dissappointed right now. For what reason could these functions be possible missing from the SDK?

Votes

Translate

Translate

Report

Report