Author Topic: Ability to trigger EVAL on Photos  (Read 242 times)

Offline cparen3

  • Newcomer
  • *
  • Posts: 14
  • Photographer
    • View Profile
Ability to trigger EVAL on Photos
« on: April 03, 2025, 01:28:58 AM »
Since the Find & Replace panel now has the ability to "Evaluate variables and code replacements in replacement string", it would be great to have another way to be able to trigger this function. Ideally a menu option, keyboard shortcut, or just a more widespread option to trigger on multiple photos would be great.

Having to open the metadata panel for every individual photo to run it is super cumbersome, this would allow much more flexibility.


Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25200
    • View Profile
    • Camera Bits, Inc.
Re: Ability to trigger EVAL on Photos
« Reply #1 on: April 03, 2025, 09:34:47 AM »
Since the Find & Replace panel now has the ability to "Evaluate variables and code replacements in replacement string", it would be great to have another way to be able to trigger this function. Ideally a menu option, keyboard shortcut, or just a more widespread option to trigger on multiple photos would be great.

Where would the result be output?

-Kirk

Offline cparen3

  • Newcomer
  • *
  • Posts: 14
  • Photographer
    • View Profile
Re: Ability to trigger EVAL on Photos
« Reply #2 on: April 03, 2025, 10:27:42 PM »
I'm not asking for another way to run the Find & Replace, I'm asking for a way to force Photo Mechanic to "Evaluate" any variables, code replacements, etc. that it finds not run.

E.g. if I apply a {headline} through the keywords panel, it doesn't render the variable, just puts that text in.

I want to be able to run the Evaluate feature and have all those types of variables, code replacements, etc. (that haven't been changed) evaluated in each image.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25200
    • View Profile
    • Camera Bits, Inc.
Re: Ability to trigger EVAL on Photos
« Reply #3 on: April 04, 2025, 12:02:38 PM »
I'm not asking for another way to run the Find & Replace, I'm asking for a way to force Photo Mechanic to "Evaluate" any variables, code replacements, etc. that it finds not run.

E.g. if I apply a {headline} through the keywords panel, it doesn't render the variable, just puts that text in.

I want to be able to run the Evaluate feature and have all those types of variables, code replacements, etc. (that haven't been changed) evaluated in each image.

I consider it a bug that it doesn't already work that way in the Keywords panel.  Are there any other places that you know of that will update a field yet not evaluate variables and code replacements?

-Kirk

Offline cparen3

  • Newcomer
  • *
  • Posts: 14
  • Photographer
    • View Profile
Re: Ability to trigger EVAL on Photos
« Reply #4 on: April 04, 2025, 12:31:14 PM »
The only other thing that comes to mind is if you put code replacement into a code replacement, you sometimes get something where it just leaves you with the text or such.