Luminous Landscape Forum
Raw & Post Processing, Printing => Adobe Lightroom Q&A => Topic started by: bernie west on June 08, 2017, 05:27:41 am
-
I'm need to utilise the ExifTool perl library in my Lua script. I've never programmed in Lua before, so have no idea how I import a perl script and then access its functions. Anyone done this before?
-
I'm need to utilise the ExifTool perl library in my Lua script. I've never programmed in Lua before, so have no idea how I import a perl script and then access its functions. Anyone done this before?
Bernie,
the guy to contact is John Beardsworth.
He is active on this forum as well as Lightroom Forums.
He also has a website in his name - easy to find with a google search.
Tony Jay
-
Thanks, yeah I'm hoping he sees this. I read a few of his posts on the subject around the internet.
-
Never tried a Perl script, but LrTasks.execute(var_command) can run an Exiftool command line.
-
cheers for that. I'll check that out.
-
Try Jeffery Friedl, http://regex.info/blog/lightroom-goodies.
-
For anyone else interested I found this - https://github.com/flingo64/PhotoStation-Upload-Lr-Plugin/blob/master/PhotoStation_upload.lrplugin/PSExiftoolAPI.lua
I'm just working through it now.
It seems that importing perl libraries into Lua isn't possible, so the solution involves opening an asynchronous task to run ExifTool in the background and write the results from the program to a log file and then transcode that back into the plugin.
-
are you sure you can't 'pipe' the output directly into the script (maybe that's a bit too Linux-y) ??
-
I'm not sure of much. :P The LR API is pretty thin on documentation.
I've almost got it working. There's a logic error in my code somewhere (as per usual) and I'm having trouble getting the debugging environment working properly so I can find the error. There's no official Lightroom SDK IDE so it's a matter of using third party debuggers and seeing how far I can get with those. I've got someone in the Adobe lr plugin forums helping me thankfully.