Page 1 of 1

metadata inline variabiles

Posted: Mon Mar 24, 2025 8:43 am
by Jakub Rafaj
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

Re: metadata inline variabiles

Posted: Mon Mar 24, 2025 11:12 am
by Terkelsen
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

Posted: Mon Mar 24, 2025 11:36 am
by magnussandstrom
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.
Don't forget add [Stats.MediaBoxWidth:Type="Defined"] equal to [Stats.MediaBoxHeight:Type="Defined"] for files that have same height and width. :)

Re: metadata inline variabiles

Posted: Mon Mar 24, 2025 11:42 am
by Terkelsen
...or use "Greater than or equal to" or "Less than or equal to" depending on where you want these files to go ;)

Re: metadata inline variabiles

Posted: Mon Mar 24, 2025 2:39 pm
by Jakub Rafaj
Thank you both. It worked!! :D :) I was looking for complicated solution than I should and it was simpler than I expected.