Joghi wrote:Just an idea: would´nt it be easier to change the programming of the plugin?
I agree. Initially I was hoping that Sebastian could design the new version so that it seamlessly interfaces with the plugin by Michael. Now, having arrived at a point where trailing blanks matter maybe it's time to reconsider. In fact, the portion of the plugin that removes unwanted characters from the output file name is poorly coded since it assumes a fixed structure of the string. I have changed the original "return string.sub(processedImage, 2, -3)" to
return string.match(LrStringUtils.trimWhitespace(processedImage), '[^"]+')
which works for all combinations of filenames with and without trailing blanks and/or double quotes as produced by SNS-HDR versions 1.4.22, 1.x, 2.0.0.6 and 2.0.0.9.
In case anyone is interested, here is the file that needs to be replaced:
Question is how to make this easily available to SNS-HDR users.
Sebastian, how about providing an update of the plugin in the corresponding forum section?