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

Solution

I think I found the correct rules:

enter image description here

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.

Importing rules

I've exported the smart collection rules here. To get that back in your LR as a smart collection, follow these steps:

  1. Copy the text from the link into a text file
  2. Change the extension from .txt to .lrsmcol
  3. In LR, right click in the Collections panel and click Import Smart Collection Settings....

enter image description here

  1. Select the .lrsmcol file 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

AI Answer

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

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)).

UniqueBot

AI

5y ago

Your Answer