Getting category panel entries to display in thumbnails.

Started by happysnapper, January 31, 2019, 01:46:39 PM

Previous topic - Next topic

happysnapper

Can anybody help? I have a folder of images with lots of people in it. I have a pre-prepared category panel open with all/most of the names of people involved. I browse through the images ticking the relevant boxes in the category panel, so far so good. I can enter suitable keywords in the keyword panel and have them displayed under the thumbnails in footer 1. What I want to do is have the names also displayed possibly in footer 2.
The keywords automatically display in the thumbnail but because the names are  children of the WHO category I understand they are classed as hidden and are only stored in the database. Any ideas?

Mario

There is a standard file window layout which displays keywords ("Title, Descriptions and Keywords"). I think you refer to that?
This layout does not display categories, only keywords stored in your files. When you say "Are children of the WHO category" I guess you are assigning your files to categories you have created.

The default layout displays the contents of the variable XMP::Lightroom\hierarchicalSubject\HierarchicalSubject\0 in the footer.
If you want to display categories instead, create your own layout and use the variable that corresponds to the data you want to view. IMatch is more than flexible enough to do this.

For example, the variable

{File.Categories.Direct|filter:^WHO}

returns all categories assigned to a file which start with WHO. This should give you what you want.
To improve this, use

{File.Categories.Direct|filter:^WHO;replace:~;==~; }

This also replaces the standard ; used to separate each category returned with ;<blank> to allow for text wrapping in the thumbnail panel.

For more info about this and other variables, check out Variables
For more info about file window layouts, check out File Window Layouts
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

happysnapper

Thanks Mario, I'm out for the evening will play when I get back.

happysnapper

Hi Mario,
Ive had a play around and got your syntax? to work. which delivers me. att im1  it looks messy.
By renaming WHO to_ in the category tree and deleting the semicolon from your syntax I get. att im2. I can live with this, not ideal but if it was possible to remove from view Who| it would be fantastic.

I have been following all your links and experimenting with Var Toy but at the moment scripting goes above my head. I will persevere and try to learn when I find the time though.


Mario

I understand that you don't want to display the full category path? Or just want to hide the WHO| part?
You can do both by either displaying only the leaf (bottom-most) elements of the category name or by using a replace variable function to replace WHO| with 'nothing'.

{File.Categories.Direct|filter:^WHO;replace:WHO|==;replace:~;==~; }

This converts WHO|Family|Miller to Family|Miller.

The level:leaf filter only displays the leaf level of categories:

{File.Categories.Direct|filter:^WHO;level:leaf;replace:~;==~; }

"WHO|Family|Miller" => "Miller"

Don't try this with a normal DAM  ;)
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

happysnapper

YES,YES,YES, perfect, thank you so much Mario.
I've only ever used IM as my DAM, right from it's launch I think.  :-) :-).

You've now inspired me to learn more about leafs. Haha

Mario

IMatch us much deeper (in terms of functionality) than most users know. Which is OK, users learn only what they need.
But when users need something new, IMatch usually has an option, button or feature for it  ;D

Spread the word! Let others know that you are using IMatch and that you like it.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook