How do I build a Lightroom Smart Collection with mixed AND/OR conditions?
Asked 11/1/2020
2 views
2 answers
0
I want a Smart Collection in Lightroom that returns photos tagged with either Bananas or Oranges, but only when those same photos also contain either Apples or Pears. In other words, I need logic like:
- (Bananas AND (Apples OR Pears))
- OR (Oranges AND (Apples OR Pears))
I’m getting either too many photos or none at all. How should the Smart Collection rules be structured?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
5y ago
2 Answers
2
I think I found the correct rules:
The trick is in creating two subgroups, one for bananas and one for oranges and then creating sub-subgroups for those two subgroups.
You can get subgroups by holding alt (on a Mac) and then clicking the plus sign + (which turns into a pound sign # when holding alt).
This creates a new subrule, allowing you to set the All/Any of the following are true dropdown for that subgroup only.
I've exported the smart collection rules here. To get that back in your LR as a smart collection, follow these steps:
- Copy the text from the link into a text file
- Change the extension from
.txtto.lrsmcol - In LR, right click in the Collections panel and click Import Smart Collection Settings....
- Select the
.lrsmcolfile from step 2.
This should re-create the smart collection shown in the top screenshot.
Originally by user9161. Source · Licensed CC BY-SA 4.0
user9161
5y ago
0
Generated from our catalog & community — verify before relying on it.
Use nested rule groups. In Lightroom, this kind of logic works best by creating two main subgroups—one for Bananas and one for Oranges—and then, inside each, a subgroup for Apples OR Pears.
Structure it like this:
- Any of the following are true
- Group 1: All of the following are true
- Keywords contain Bananas
- Subgroup: Any of the following are true
- Keywords contain Apples
- Keywords contain Pears
- Group 2: All of the following are true
- Keywords contain Oranges
- Subgroup: Any of the following are true
- Keywords contain Apples
- Keywords contain Pears
- Group 1: All of the following are true
In Lightroom, you can create a subgroup by holding Alt/Option and clicking the + button in the Smart Collection rule builder.
That gives you the equivalent of: (Bananas AND (Apples OR Pears)) OR (Oranges AND (Apples OR Pears)).
Recommended products
UniqueBot
AI5y ago
Your Answer
Related Questions
How can I make Lightroom Smart Collections match exact people names?
Can Lightroom 5 Smart Collections use nested conditions?
Why doesn’t a Lightroom smart collection show photos I flagged inside another collection?
Can you copy specific Smart Collection rules between collections in Lightroom Classic?
Can a Lightroom Smart Collection filter photos from another collection by rating?

