The Codecs was my main reason for buying FPV Pro, but I am hoping the program will help speed up my initial culling of RAW files before moving on to Bibble which is my RAW convertor of choice.
One of the things I want to be able to do is set the XMP "Label" to red for all pictures above a certain ISO. This will make is easier for me to identify the images that need fine tuning with noise reduction in Bibble.
I'm hoping I can do this using a couple of Javascripts in the file utilities.
I have set up my first one line script to identify the images in question:
- Code: Select all
function Evaluate(context)
{
return context("Meta.ISOSpeed") >= 700 ? 1 : 0;
}
This works perfectly.
I hope was that my action script would then be as simple as:
- Code: Select all
function Execute(context)
{
context("Meta.XMP.Label")="1" ; /* Will not write back to the file! */
return 0; // Tell execution was successful
}
Whilst this runs without syntax errors, it doesn’t appear to actually do anything !
If I place “wshShell.popup” functions before and after that line, and start off with an image with the label set to say green, I initially see Meta.XMP.Label is set to “3” as expected, and then changes to “1” as planned, however the change doesn’t then get written back to the XMP file.
I should say at this point that I know very little about Javascript !
Is there something extra I need to add to my one-line action script to ensure that Meta.XMP.Label updates the XMP file, or have I got completely the wrong end of the stick with my script ?
If there is an example of doing something like this either in the help or on this forum, I’m happy to be told to “RTFM”, but a pointer to where the info is would be much appreciated !
Thanks in advance for your help with this.
Best regards,
John