Author Topic: Question: How to handle (automise) multiple BIB-Numbers  (Read 279 times)

Offline Sven

  • Uber Member
  • ******
  • Posts: 1031
    • View Profile
Question: How to handle (automise) multiple BIB-Numbers
« on: August 28, 2023, 12:40:56 AM »
Hi Team,
is there a way to do CR for multiple BIBs in a single image?
I enter the start numbers shown (semicolon separated) into an unused IPTC field.

Any idea on how iterate through all BIBs shown to add their names into the IPTC description, persons shown, etc?

Idea: read the full string, look for the (defined) separator, split the string accordingly and loop through all the entries
After 5 years of absence I restarted the photography.

Offline Bob Russell

  • Camera Bits Staff
  • Full Member
  • *****
  • Posts: 220
    • View Profile
    • Camera Bits, Inc.
Re: Question: How to handle (automise) multiple BIB-Numbers
« Reply #1 on: August 28, 2023, 03:18:45 PM »
HI Sven,

I was successful with a test of this workflow. I used the Headline field for the collection of Bib numbers. Each Bib number must be of the same format. I used 4 characters followed by the separator character. Eg 0011;1244;2101;3257. There shouldn't be any blank spaces or other characters in the Headline field.

The code replacement file will have two columns for the return names. The fist column of names will be used in the repeating such as Persons Shown and Keywords. Each name will be preceded with the separating character and a blank space.
Eg, 0011<tab>; Jimmy C. Bits<tab>Jimmy C. Bits<cr>

The second name column will be used in non repeating fields such as the Caption/Description. It will just have the Bib number athlete names.

Once the images have been updated with the Bib numbers following the above format, setup the Metadata (IPTC) Template with the following code replacement variables.
Repeating fields - Persons Shown :
={head:0,4}= ={head:5,4}= ={head:10,4}= ={head:15,4}= ={head:20,4}=    and so on if you plan on adding more than 5 people to the field.
Non-repeating fields - Caption/Description :
={head:0,4}#2= ={head:5,4}#2= ={head:10,4}#2= ={head:15,4}#2= ={head:20,4}#2=

The final setting to check will be in the Set Code Replacements dialog. Make sure the Default replacement character is just a single blank space. This will prevent the code replacements returning == for the empty code replacement variables.

Best regards,

--Bob

Offline Sven

  • Uber Member
  • ******
  • Posts: 1031
    • View Profile
Re: Question: How to handle (automise) multiple BIB-Numbers
« Reply #2 on: August 28, 2023, 05:00:53 PM »
Thanks Bob,
I wasn't aware anymore that we can strip out a specific number of characters and use them for CR.

Will give it a try
After 5 years of absence I restarted the photography.