Is it possible to detect when an image’s rating changes with LUA?
Not that I am aware off.
https://docs.darktable.org/lua/stable/lua.api.manual/events/
Can you describe your intended use case?
I’d like to replicate Lightroom’s auto-advance feature whereby the next image is automatically displayed when an image is picked/rejected/rated. It’s great for quick culling.
No need for additonal lua coding.
Simply set your collection filter to “unrated only” and go through the collection.
Whenever you rate/reject an image the next image appears.
This is how I do it
Ah, ok, that’s great. I guess that would also necessitate setting the initial rating to 0 on import.
Not really, you’ll just have to adjust the collection filter to retain only those images with the number of starts you attributed on import. What you should avoid is images getting a range of ratings before culling…
But an initial rating of 0 sounds more natural to me.
Click here and drag the mouse to select the filter.
You can set to not rated and above, or just the rejects (great to delete them from the system).
Yeah, think I’ve got it down now:
- set to 0 rating on import
- set filter to unrated
- Cull with R to Reject, 1 to keep
- filter to rejects, select all and trash
- set filter to 1 star
- go through and set rating to 2 for OKs, 3 for Goods, 4 for Greats, 5 for LPotY winners (my 5 key is as-new)
- profit
I will be doing a video on this soon and will be sure to mention you all!
I do similar, but without the 1. I just cull with R when it is a clear reject, leave blank if ok to keep but not process and rate 1-5 for the ones I want to process.
I tend to trash only after I’ve processed all the images and exported them (I’m really done). Ive gone back to grabbed a reject to use to save another image.
Yeah I guess hitting the right arrow is no different from giving it a 1 rating.
Personally I prefer to cull in the darkroom view because I shoot a lot of bracketed shots to cover my arse and want to cull the images with highlight clipping. Not really addressing your original question but letting you know about something DT does better than LR.
Good shout. I usually make use of the live histogram in the camera to avoid clipping when I’m bracketing. It would be nice if there was a clipping view toggle in the lighttable like the focus peaking one though.
No need to use the right arrow. Using just the left hand you can use R and the spacebar to move to the next image or use the number to rate.
Be sure to comment that on the video
I did that until I noticed that the camera histogram was way too conservative: the camera histogram is based on its jpeg output, and in my case I had at least 1 stop more room in the highlights than that histogram indicated…
A lot easier if it is already in the video.
Easier, yes, better for the algorithm, no.
I agree with this, but unless a developer feels this is a good idea I will just continue using the darkroom for culling. I can’t code or I would try to implement this. I also agree with rvietor that then cameras histogram is for the jpg rather than the raw file, but if the JPG has captured the highlights the raw can only have even more detail in both the shadows and the highlights. So still worth using the cameras histogram, but bracketing is so quick on the Canon R7 I use and it just covers my arse in some very challenging lighting conditions when I travel.
I don’t think culling with a gamut clipping indicator is a good idea. The clipping depends on your module settings. You will end up discarding good images.
@g-man thanks for pointing to that error in my statement. In my case I believe I have the settings reasonably set to show clipping, but I may be mistaken. I nearly always shoot bracketed images at +/- 1.67 EV so under normal conditions I expect the +1.67 to be a throw away with clipped highlights. That is why I work the way I do. I previously did +/- 1.0EV but with my newer Canon R7 I find the dynamic range is better than my older cameras. Sometimes the images with clipped highlights are still the best because of subject capture and DT has a great ability at trying to recover the lost details especially if not all RGB channels are clipped.