Pages: [1]   Go Down

Author Topic: Anyone experience in creating Lightroom plugins?  (Read 2575 times)

bernie west

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 323
    • Wild Photo Australia
Anyone experience in creating Lightroom plugins?
« 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?
Logged

Tony Jay

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2965
Re: Anyone experience in creating Lightroom plugins?
« Reply #1 on: June 08, 2017, 05:53:45 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?
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
Logged

bernie west

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 323
    • Wild Photo Australia
Re: Anyone experience in creating Lightroom plugins?
« Reply #2 on: June 08, 2017, 07:24:07 am »

Thanks, yeah I'm hoping he sees this.  I read a few of his posts on the subject around the internet.
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Anyone experience in creating Lightroom plugins?
« Reply #3 on: June 08, 2017, 07:27:06 am »

Never tried a Perl script, but LrTasks.execute(var_command) can run an Exiftool command line.
Logged

bernie west

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 323
    • Wild Photo Australia
Re: Anyone experience in creating Lightroom plugins?
« Reply #4 on: June 08, 2017, 08:04:13 am »

cheers for that.  I'll check that out.
Logged

Remo Nonaz

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 385
    • Photography By Homer Shannnon
Re: Anyone experience in creating Lightroom plugins?
« Reply #5 on: June 08, 2017, 08:21:33 pm »

Logged
I really enjoy using old primes on my m4/3 camera. There's something about having to choose your aperture and actually focusing your camera that makes it so much more like... like... PHOTOGRAPHY!

bernie west

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 323
    • Wild Photo Australia
Re: Anyone experience in creating Lightroom plugins?
« Reply #6 on: June 09, 2017, 12:18:36 am »

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.
Logged

howardm

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 1984
Re: Anyone experience in creating Lightroom plugins?
« Reply #7 on: June 15, 2017, 08:16:53 am »

are you sure you can't 'pipe' the output directly into the script (maybe that's a bit too Linux-y) ??

bernie west

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 323
    • Wild Photo Australia
Re: Anyone experience in creating Lightroom plugins?
« Reply #8 on: June 15, 2017, 11:31:31 pm »

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.
Logged
Pages: [1]   Go Up