photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: ubacher on October 09, 2018, 01:49:11 PM

Title: How to find Versions which have multiple Masters?
Post by: ubacher on October 09, 2018, 01:49:11 PM
I discovered I have some files which are versions with multiple masters. I know how to fix this
problem but I need to find these files. Is there some trick, some (sample?) app etc which will let me find
these files?
Title: Re: How to find Versions which have multiple Masters?
Post by: Mario on October 09, 2018, 03:04:06 PM
Hm, tricky.

The variable {File.Relations} returns the relation(s) of a file. If a file has two masters from different relation rules, this variable will contain more than one element, separated with ;
Maybe setup a data-driven category based on that variable and filter out everything that has no ; ?
Title: Re: How to find Versions which have multiple Masters?
Post by: ubacher on October 10, 2018, 10:12:59 AM
Quote..... this variable will contain more than one element, separated with ;

Tried it with vartoy, it contains only on relationship.

A script returns the value 10 for versionstate. (This is how I found out about the problem.)

Title: Re: How to find Versions which have multiple Masters?
Post by: Mario on October 10, 2018, 11:23:04 AM
QuoteTried it with vartoy, it contains only on relationship.

Strange. I get something like this for a file with two masters:

Collections|Relations|Version|Manual Version ; Collections|Relations|Version|AFDesign
Title: Re: How to find Versions which have multiple Masters?
Post by: ubacher on October 10, 2018, 05:33:20 PM
My relations are screwed up. When I refresh relations and then propagate anew the problem disappears.
But to do this I need to find the problem files - Refreshing all relations would take too long I reckon.