#Struggling to understand Conditions

1 messages · Page 1 of 1 (latest)

fierce anchor
#

Trying to use conditions for overlays.

I have two overlays in a group that are working fine, an IMDBTop250 image and a Rotten Tomatoes Certified Fresh image. So only one is actually shown on any given poster. The images are different heights.

I want to place Oscar/Golden Globe awards above this first overlay, but with the height not being static I'm pretty sure I need to use a conditional to determine the vertical offset.

Can somebody give me some examples for conditionals in overlays. I've read through the wiki about dynamic overlays a few times and couldn't grasp it.

frigid carbonBOT
#

Welcome @fierce anchor!

Someone from <@&938443185347244033> will assist when they're available.

Including meta.log from the beginning is a huge help. Type !logs for more information.

After attaching your log, do not forget to hit the green check boxes when prompted by our bot.

#

You can press the "Close Post" button above or type /close at any time to close this post.

ancient geyser
fierce anchor
#

Thanks, I hadn't thought of reading through those.

I had a read through but still can't find any conditional that relate one overlay to another overlay. E.g. vertical offset linked to whether an IMDBTop250 overlay was placed or not.

But I guess I can just use conditional based on the same outcome. E.g. search for IMDBTop250 labels and use conditional for different outcomes to determine the vertical offset

#

So I think all good, but I'll test tomorrow

ancient geyser
# fierce anchor Thanks, I hadn't thought of reading through those. I had a read through but sti...

https://github.com/Kometa-Team/Kometa/blob/master/defaults/overlays/audio_codec.yml

      vertical_offset:
        default: 15  # default to 15
        conditions:
          - vertical_align.exists: false  # if this condition matches
            value: 150                    # set vertical offset to 150
          - vertical_align: center        # if this condition matches
            value: 0                      # set vertical offset to 0
          - vertical_align: top           # if this condition matches
            value: 15                     # set vertical offset to 15
          - vertical_align: bottom        # if this condition matches
            value: 30                     # set vertical offset to 30

Maybe simpler would be two golden globe overlays at different positions, in a group so that only one wins and gets applied.

fierce anchor
#

Yep I just did this in the end:

Oscar_blank:
overlay:
name: Oscar
horizontal_offset: 100
horizontal_align: right
vertical_offset: 15
vertical_align: bottom
plex_search:
all:
label: "Oscar Winner"
label.not:
- "IMDb Top 1000"
- "Metacritic Must See"
- "RT Certified Fresh"

Globe_blank:
overlay:
name: Globe
horizontal_offset: 0
horizontal_align: right
vertical_offset: 18
vertical_align: bottom
plex_search:
all:
label: "Golden Globe Winner"
label.not:
- "IMDb Top 1000"
- "Metacritic Must See"
- "RT Certified Fresh"

Oscar_imdb:
overlay:
name: Oscar
horizontal_offset: 100
horizontal_align: right
vertical_offset: 115
vertical_align: bottom
plex_search:
all:
label:
- "Oscar Winner"
- "IMDb Top 1000"

Globe_imdb:
overlay:
name: Globe
horizontal_offset: 0
horizontal_align: right
vertical_offset: 118
vertical_align: bottom
plex_search:
all:
label:
- "Golden Globe Winner"
- "IMDb Top 1000"

Oscar_badge:
overlay:
name: Oscar
horizontal_offset: 100
horizontal_align: right
vertical_offset: 180
vertical_align: bottom
plex_search:
all:
label: "Oscar Winner"
label.not: "IMDb Top 1000"
any:
label:
- "Metacritic Must See"
- "RT Certified Fresh"

Globe_badge:
overlay:
name: Globe
horizontal_offset: 0
horizontal_align: right
vertical_offset: 183
vertical_align: bottom
plex_search:
all:
label: "Golden Globe Winner"
label.not: "IMDb Top 1000"
any:
label:
- "Metacritic Must See"
- "RT Certified Fresh"

#

You can close this