Hello, everyone. I just recently started learning Switch by myself for our family-friendly printing company and I would be gratefull for any sort of help, or your knowledge.
I´ve came across metadata and I am confused. In order to *apply some rules to file according to metadata, what is better? To have data with log straight from PitStop Server or just log as XML and inject it back to the workflow.
*by applying rules I mean basically, I want to create a flow that will check if orientation is set to horizontally so in metadata "if MediaBox widht>height then ok" I suppose.
But I dont know which element, (connection??) is best to use with these sort of commands and also how to correctly write down a path to metadata.
Thanks a lot.
Jakub
metadata inline variabiles
-
- Newbie
- Posts: 2
- Joined: Tue Mar 18, 2025 11:01 am
- Location: Bratislava
Re: metadata inline variabiles
If you have Switch with the metadata module there is no need to involve PitStop in this.
On a connection between two folders you just set "Include these jobs" as "Condition with variables defined". You then choose [Stats.MediaBoxWidth:Type="Defined"] Greater than [Stats.MediaBoxHeight:Type="Defined"] in order to only route horisontal files this way. You can then make another connection with the same settings except for using "Less than" rather than "Greater than" in order to get the vertical files.
On a connection between two folders you just set "Include these jobs" as "Condition with variables defined". You then choose [Stats.MediaBoxWidth:Type="Defined"] Greater than [Stats.MediaBoxHeight:Type="Defined"] in order to only route horisontal files this way. You can then make another connection with the same settings except for using "Less than" rather than "Greater than" in order to get the vertical files.
- magnussandstrom
- Advanced member
- Posts: 487
- Joined: Thu Jul 30, 2020 6:34 pm
- Location: Sweden
- Contact:
Re: metadata inline variabiles
Don't forget add [Stats.MediaBoxWidth:Type="Defined"] equal to [Stats.MediaBoxHeight:Type="Defined"] for files that have same height and width.Terkelsen wrote: ↑Mon Mar 24, 2025 11:12 am If you have Switch with the metadata module there is no need to involve PitStop in this.
On a connection between two folders you just set "Include these jobs" as "Condition with variables defined". You then choose [Stats.MediaBoxWidth:Type="Defined"] Greater than [Stats.MediaBoxHeight:Type="Defined"] in order to only route horisontal files this way. You can then make another connection with the same settings except for using "Less than" rather than "Greater than" in order to get the vertical files.

Re: metadata inline variabiles
...or use "Greater than or equal to" or "Less than or equal to" depending on where you want these files to go 

-
- Newbie
- Posts: 2
- Joined: Tue Mar 18, 2025 11:01 am
- Location: Bratislava
Re: metadata inline variabiles
Thank you both. It worked!!
I was looking for complicated solution than I should and it was simpler than I expected.

