Filtering masters with more than n versions?

Started by ubacher, September 25, 2017, 03:00:22 PM

Previous topic - Next topic

ubacher

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?

Mario

#1
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).
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

ubacher

Can't really filter based on stack count (Value Filter).
Can I set up a computed category and then filter by that/those categories?

Mario

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.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook