photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: Darius1968 on August 10, 2023, 12:49:08 AM

Title: Consolidated Variable Enumeration
Post by: Darius1968 on August 10, 2023, 12:49:08 AM
Given
This metadata tag:  {File.MD.Photoshop::SliceInfo\20\SlicesGroupName\0}
is producing the following ten values for ten files: 

MoekaKurihara-1-030
MoekaKurihara-1-031
MoekaKurihara-1-033
MoekaKurihara-1-034
MoekaKurihara-1-035
MoekaKurihara-1-036
MoekaKurihara-1-037
MoekaKurihara-1-038
MoekaKurihara-1-040
MoekaKurihara-1-043

Now, it is desired that a data driven category or that the variable filter of the filter panel (Filter>Variable) will now consolidate all ten of these files under one entry named MoekaKurihara

So, what formatting functions and what syntax are needed to pull this off?  How do I do it? 
Title: Re: Consolidated Variable Enumeration
Post by: Mario on August 10, 2023, 10:01:31 AM
I assume there are different names used by Photoshop for your slices in different images?
I would look into splitlist:Split Character,Index (https://www.photools.com/help/imatch/var_basics.htm?dl=h-215) to split the names at - and then use the first element?

See Variables (https://www.photools.com/help/imatch/var_basics.htm?dl=hid-1) for everything IMatch has to offer for variables, and then make some experiments.
Title: Re: Consolidated Variable Enumeration
Post by: Darius1968 on August 10, 2023, 09:34:55 PM
Is it possible to use this splitlist: function with more than one character.  I tried to put multiple splitlist: arguments in my variable statement, and that doesn't seem to work either. 
Title: Re: Consolidated Variable Enumeration
Post by: Mario on August 10, 2023, 10:35:59 PM
You can do all that's documented in splitlist:Split Character,Index (https://www.photools.com/help/imatch/var_basics.htm?dl=h-215)
If the Adobe software sometimes uses - and sometimes uses another separator, you need to find a way to consolidate.
Ask Adobe support for details.