I'm writing a plug-in that adds a new export method to Lightroom and that defines some plug-in metadata fields. I'd like the users to use these metadata fields to define their file renaming pattern in the export dialog. That means I'd like to create a token pattern from a plug-in metadata field.
Is there a way to accomplish this?
I don't believe there's any way to incorporate plugin metadata fields directly into the builtin renaming patterns. A couple of possibilities for alternate solutions:
- Appropriate an existing metadata field that the renaming patterns know about (e.g. Description Writer) and have your plugin set that field with the desired custom metadata using photo:setRawMetadata().
- Use or adapt the Exportant plugin, which provides greatly expanded file renaming possibilities. The author Role Cole contributes here and is very helpful.