photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: ubacher on September 25, 2017, 03:00:22 PM

Title: Filtering masters with more than n versions?
Post by: ubacher on September 25, 2017, 03:00:22 PM
I don't think there is a metadata field accessible which tells how many versions a master has. Right?
I want to filter out all masters which have more than n versions.
Do I write a script? or add a feature request? Any other way to do this?
Title: Re: Filtering masters with more than n versions?
Post by: Mario on September 25, 2017, 03:36:53 PM
Quote from: ubacher on September 25, 2017, 03:00:22 PM
I don't think there is a metadata field accessible which tells how many versions a master has. Right?
You're right. File relations are not part of metadata. They are stored in the database.

Try {File.Relations.Stack.Count} and substract 1 (for the master).
Title: Re: Filtering masters with more than n versions?
Post by: ubacher on September 25, 2017, 06:16:35 PM
Can't really filter based on stack count (Value Filter).
Can I set up a computed category and then filter by that/those categories?
Title: Re: Filtering masters with more than n versions?
Post by: Mario on September 25, 2017, 06:37:51 PM
This is a very special problem. I doubt many users will ever face it.

Did you try to just create a data-driven category on that variable? Should work a treat - albeit it may be slow.