Luminous Landscape Forum

Raw & Post Processing, Printing => Adobe Lightroom Q&A => Topic started by: John Caldwell on October 04, 2015, 02:16:32 pm

Title: Possible to over-write Star Ratings Only?
Post by: John Caldwell on October 04, 2015, 02:16:32 pm
In tidying up my primary LR catalog today, I apparently, but unintentionally, assigned 5 stars to all 200,000 catalog images. Is it possible to use a prior catalog backup file that has the "correct" star ratings, but does not reflect any of the other catalog work I've done since saving backup, to import only the Star ratings? I'd like to leave everything as it now sits in the "cleaned up" catalog except the Star ratings.

I'm aware the can can Import From Catalog and save virtual copies for all all content that differs, but that won't help here.

John Caldwell
Title: Re: Possible to over-wite Star Ratings Only?
Post by: Rhossydd on October 04, 2015, 02:57:48 pm
I don't think there's an easy way to do this.

I guess the answer will involve opening the new catalogue file in an appropriate SQL database application, then cutting and pasting the rating values from an old backup file.
It may be one of those tasks that could be quite simple, but practice first with some back up copies of the files before committing any changes to your master files.

Hopefully someone like John who knows more about the catalogue structure will be along to help soon.


Title: Re: Possible to over-wite Star Ratings Only?
Post by: John Caldwell on October 04, 2015, 03:04:37 pm
Yes, your insights are helpful and I have reached out to John. Many thanks,

John-
Title: Re: Possible to over-write Star Ratings Only?
Post by: john beardsworth on October 05, 2015, 04:28:24 am
Hopefully we're close to a solution. It's based on scripts (Adobe SDK) as for a few reasons I try to avoid directly updating Lr's SQL. But it could be done that way too.
Title: Beardsworth to the Rescue
Post by: John Caldwell on October 06, 2015, 01:34:19 pm
John Beardsworth rescued me! John wrote a couple of scripts that were easy to use and efficient. The scripts extracted only the Star Ratings from my backup catalog, copied those ratings to the destination catalog, and left all other catalog work intact. I was able to restore star ratings on a 198,000 image catalog in a few hours. I suspect the process could have been batched entirely at once across all 198,000 files, but because of my inexperience, I chose to restore the entire catalog in stages - treating as many as 40,000 images at once.

I am really indebted to John and can't imagine what I would have done without his help, aside from retracing a few dozen hours of key wording work.

John Caldwell

Title: Re: Possible to over-write Star Ratings Only?
Post by: jjj on October 06, 2015, 04:11:35 pm
Nicely done John.

Though the first thing that struck me, since I've applied a batch star rating on a few occasions by mistake, was to simply use the undo command Cntrl/Cmd+z to fix issue.
Or had you already closed LR?
Title: Re: Possible to over-write Star Ratings Only?
Post by: Tony Jay on October 06, 2015, 04:43:57 pm
Yes, John is a good bloke and a great resource!

Tony Jay
Title: Re: Possible to over-write Star Ratings Only?
Post by: john beardsworth on October 06, 2015, 05:46:22 pm
Ah, thank you chaps ;)
Title: Re: Possible to over-write Star Ratings Only?
Post by: John Caldwell on October 06, 2015, 06:18:02 pm
Nicely done John.

Though the first thing that struck me, since I've applied a batch star rating on a few occasions by mistake, was to simply use the undo command Cntrl/Cmd+z to fix issue.
Or had you already closed LR?

Hours of catalog work, with many steps, have been done until I discover my error.
Title: Re: Possible to over-write Star Ratings Only?
Post by: jjj on October 07, 2015, 07:56:21 am
Hours of catalog work, with many steps, have been done until I discover my error.
Wondered if something like that had happened.
Anyway thankfully solved by one of our scripting gurus.