Copy link to clipboard
Copied
I ma trying to update raw metadata on export. there are few metatada I am updating on this plugin. All the metadatas are updated but gps. I used
setRawMetadata('gps', {longtitude =1.39392320320, latitude=1.2343232});
Even though this call finished without any errors, it does not update the metadata to the given value. After I checked, now the gps data is nil.
Can you please tell me what the problem here. Or are there any restrictions.
I have figured out the issue. there are some other settings in export window which says not to export location data. once uncheked that, it works perfect.
Thanks everyone.
Copy link to clipboard
Copied
You've got incorrect syntax; it should be:
setRawMetadata('gps', {longtitude = 1.39392320320, latitude = 1.2343232})
Copy link to clipboard
Copied
You might as well written that in chinese, I understand the programming, but I don't know where to apply it.
Copy link to clipboard
Copied
My guess it is failing because longitude is misspelled.
Copy link to clipboard
Copied
This is corrected in the quesion. Any other suggestion other than spelling mistakes?
Copy link to clipboard
Copied
Correction to the correction:
setRawMetadata('gps', {longitude = 1.39392320320, latitude = 1.2343232})
[Use the reply button under the first post to ensure replies sort properly.]
Copy link to clipboard
Copied
sorry, updated the issue. I am actually using = and correct name. Still it is not updated.
Copy link to clipboard
Copied
[This post contains embedded images that don't appear in email. View the post in your Web browser to see the images.]
Without seeing the complete code, it's hard to know what might be going wrong. I just verified that this code works correctly in LR 9.2:
If you're not using a debugger, I highly recommend either my Debugging Toolkit or the Zerobrane IDE. Trying to debug LR plugins using print statements is an exercise in frustration.
Copy link to clipboard
Copied
I have figured out the issue. there are some other settings in export window which says not to export location data. once uncheked that, it works perfect.
Thanks everyone.
Copy link to clipboard
Copied
Glad you got it resolved.