photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: mgm1965 on August 29, 2014, 08:09:43 PM

Title: Where I'm wrong
Post by: mgm1965 on August 29, 2014, 08:09:43 PM
What I'm doing wrong with this?

{File.Categories.Direct|level:leaf|filter:^@Category[@All|Persone|]}

I want to display in the "tool tip information windows" the persons that I've assigned to the image.
And I don't want to see other category assignement

The category tree is:
@All|Event|Birthday
@All|Persone|Franca
@All|Persone|Marco
@All|Persone|Samuele

Thanks

Marco
Title: Re: Where I'm wrong
Post by: Mario on August 30, 2014, 07:51:23 AM
You are mixing category formula syntax (@Category) with regular expressions used to filter the result of the File.Categories.Direct variable. This will not work. It's much simpler:

{File.Categories.Direct|filter:^Persone;level:leaf}

The filter find all categories starting with "Persone".  Then you extract the leaf level from that.
Title: Re: Where I'm wrong
Post by: mgm1965 on August 30, 2014, 08:44:43 PM
Thanks!

Marco