Author Topic: Multiple code replacements possible?  (Read 3940 times)

Offline Lars

  • Member
  • **
  • Posts: 87
    • View Profile
    • DESGphoto / elementalSPORTS
Multiple code replacements possible?
« on: October 31, 2009, 04:59:17 AM »
Hi Kirk,

recently, I tried out the code replacement. Great! But one question: is it possible to have several code replacements at the same time. Fort example:

cp   Claudia Pechstein
jw   Jenny Wolf
bs   Bart Schouten
...

Delimiter is a '#'.

Can I write something like: #cp jw bs# to get "Claudia Pechstein, Jenny Wolf, Bart Schouten" separated by a ','. Something like this would really increase the speed of work with CP (especially, when you have more than 1 person on a photo)

Thanks,
Lars

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Multiple code replacements possible?
« Reply #1 on: October 31, 2009, 06:03:24 AM »
Lars,

recently, I tried out the code replacement. Great! But one question: is it possible to have several code replacements at the same time. Fort example:

cp   Claudia Pechstein
jw   Jenny Wolf
bs   Bart Schouten
...

Delimiter is a '#'.

Can I write something like: #cp jw bs# to get "Claudia Pechstein, Jenny Wolf, Bart Schouten" separated by a ','. Something like this would really increase the speed of work with CP (especially, when you have more than 1 person on a photo)

You'd have to do this instead:

#cp#, #jw#, #bs#

-Kirk

Offline Lars

  • Member
  • **
  • Posts: 87
    • View Profile
    • DESGphoto / elementalSPORTS
Re: Multiple code replacements possible?
« Reply #2 on: November 01, 2009, 03:23:05 AM »
You'd have to do this instead:

#cp#, #jw#, #bs#

Hi Kirk,

I know that I have to do this in the way you explained above. But the "idea" was to simplifiy this procedure a bit to speed up. COuld you imagine to implement this, please.

BTW: I guess there seems to be a sorting bug in the 4.6.2beta2 on a Mac with the capture time. I shoot many series (several images by second so that the EXIF date is equal) of images and after the ingest I have sorted the images by the capture time. Unfortunately, some of the images of a sequences are now not in the right sorting order. I tried it again with 4.6.1 on a PC and everything there was done correct. Please can you check this?

Thanks and best regards,
Lars

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Multiple code replacements possible?
« Reply #3 on: November 01, 2009, 06:10:49 AM »
Lars,

You'd have to do this instead:

#cp#, #jw#, #bs#

I know that I have to do this in the way you explained above. But the "idea" was to simplifiy this procedure a bit to speed up. COuld you imagine to implement this, please.

This could be difficult to implement.  You could easily have codes like this (each are completely legal, including codes that have spaces in them):

cp[tab]replacement
jw[tab]replacement
bs[tab]replacement
cp jw[tab]replacement
cp bs[tab]replacement
jw bs[tab]replacement
cp jw bs[tab]replacement

So what should Code Replacement do when it sees #cp jw bs#?  For purposes of speed, Code Replacement has a literal quick-lookup scheme that uses exact matches to find its replacements.  It takes what you've written between your Code Replacement delimiters and sends it through to get the result.  There isn't any logic behind it.  There is either an exact match or there isn't.

Quote from: Lars
BTW: I guess there seems to be a sorting bug in the 4.6.2beta2 on a Mac with the capture time. I shoot many series (several images by second so that the EXIF date is equal) of images and after the ingest I have sorted the images by the capture time. Unfortunately, some of the images of a sequences are now not in the right sorting order. I tried it again with 4.6.1 on a PC and everything there was done correct. Please can you check this?

Can you send me a few sample files that I can use to test this?  Please click on my name to the left of this message, then click on the 'personal message' link.  I will respond with upload instructions.

-Kirk