Custom icon in file window

Started by herman, February 23, 2016, 06:29:25 PM

Previous topic - Next topic

herman

I would like to have an indication in the file window telling me when an image has been post-processed.
The raw converters I use all store some sort of 'sidecar' on the disk containing the development parameters.
I have defined these files as buddy files in the IMatch File Relation configuration.

Using the variable {File.Buddyfiles} I can tell there are buddy files for a given image.
When I use the function contains I can check for the presence of a buddy file created by a certain raw converter, for example:
{File.BuddyFiles|contains:dop,DxO,,} will output DxO when there is a buddy file containing dop.
Similarly {File.BuddyFiles|contains:preview,PN,,} will output PN when PhotoNinja created a parameter file.
I can combine a number of these checks in one expression, which then may become
{File.BuddyFiles|contains:dop,DxO;contains:xmp, ASP;contains:lzn, LZN;contains:preview, PN;contains:pdn, PDN}
The problem here is that, when I use multiple post processing tools, the output may become too long to comfortably fit in the file window thumbnail.
So what I would like to do is to add an OR function, something like this:

{File.BuddyFiles|contains:(dop OR xmp OR lzn OR preview OR pdn),<output my custom icon>,,}

As far as I can tell an OR function is not available here.
Is there perhaps an other way to achieve this?
Enjoy!

Herman.

Mario

No Boolean operations on this level, sorry.
If you need such complex stuff, it is probably better to combine everything into a metadata tag or attribute with a metadata template which runs after ingesting. Then you can check only one attribute or one metadata tag in your file window layout.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

sinus

Quote from: Mario on February 23, 2016, 08:00:46 PM
No Boolean operations on this level, sorry.
If you need such complex stuff, it is probably better to combine everything into a metadata tag or attribute with a metadata template which runs after ingesting. Then you can check only one attribute or one metadata tag in your file window layout.

Yep, I did  a lot, based on Metadatas. Works perfect.

Normally, depending on your preferences, some values from such sidecars goes in some metadatas, in my case for sure the cropping.
So I could easy create an icon, if such a metadatafiels has an entry, then there must be a sidecar, hence I could let display an icon.

Surprisingly (or not, because we work here with IMatch  ;D), even quick browsing of thumbs, with such complex layouts, with about 5-10 icons and other values, works great.
Really cool, if you can see your own icons, because you know then very quickly, what they mean, faster than reading some text or numbers.
I have for example for different sizes of the images some fruits  ;D, like some berrys are small sizes, oranges bigger and ananas still bigger ... and so on.
Best wishes from Switzerland! :-)
Markus

herman

Quote from: Mario on February 23, 2016, 08:00:46 PM
No Boolean operations on this level, sorry.

Thanks for your response, no need to say 'sorry'!
I expected there would be no Boolean stuff here, I just asked to be sure I did not miss something.
I will see if I can prepare some metadata template to handle this.
Enjoy!

Herman.