Pages: [1]   Go Down

Author Topic: Does LR allow scripting?  (Read 2748 times)

l_d_allan

  • Full Member
  • ***
  • Offline Offline
  • Posts: 208
    • Berean photos
Does LR allow scripting?
« on: December 10, 2013, 07:51:54 am »

I've used scripting with ACR and PS, with the ExtendScript toolkit. It's unclear to me whether LR allows scripting.

If so, is there some kind of reference? PS uses a variant of JavaScript with .jsx filename extension.

Initially, this is what I'd like to do:
* Add snapshots to a series of images,
* For example, add the Snapshot label "A_AsShot" to all images
* My impression is that LR snapshot labels are visible in ACR
http://www.luminous-landscape.com/forum/index.php?topic=82946.msg669915#msg669915
Logged
retired in Colorado Springs, CO, USA ... hobby'ist with mostly Canon gear

kaelaria

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2223
    • http://www.bgpictures.com
Re: Does LR allow scripting?
« Reply #1 on: December 10, 2013, 08:12:18 am »

Nope
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #2 on: December 10, 2013, 08:39:10 am »

Yes. Though it depends how you define scripting.... You need to look up the Lightroom SDK and learn Lua - there's no JavaScript / AppleScript / VB.
Logged

kaelaria

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2223
    • http://www.bgpictures.com
Re: Does LR allow scripting?
« Reply #3 on: December 10, 2013, 08:43:59 am »

He defines it as doing what he detailed.  Nope.
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #4 on: December 10, 2013, 08:57:54 am »

Don't be such a pillock. He says what he's done before and what PS does. If that's a definition, it's a very loose and implied one, and you can certainly use the ETSK to write scripts for Lightroom. Or don't you know that?
Logged

l_d_allan

  • Full Member
  • ***
  • Offline Offline
  • Posts: 208
    • Berean photos
Re: Does LR allow scripting?
« Reply #5 on: December 10, 2013, 02:05:52 pm »

Yes. Though it depends how you define scripting.... You need to look up the Lightroom SDK and learn Lua - there's no JavaScript / AppleScript / VB.

Thanks!

I've downloaded the SDK and programmer's guide.

I'm mostly ignorant about Lua. It seems to have emerged as one of the preferred scripting languages for interacting with API's / SDK's. Or not?

My impression from a quick look at the Lua Wiki entry is that it is more or less similar to C (a'la JavaScript, Php, etc.) as far as syntax. Whew ... that will help this rusty, retired C++ developer.
Logged
retired in Colorado Springs, CO, USA ... hobby'ist with mostly Canon gear

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #6 on: December 10, 2013, 02:49:53 pm »

Your C++ starting point could help you get going. I've a lot of experience with VB, JS. PHP, SQL, but I've not done C++ or that kind of programming. So I learnt Lua from scratch and found it tougher going than it should have been. One of the problems was that it seems to be well-respected but only geeks use it. As far as I have seen it's only really used in World of Warcraft, whatever that is! As a result, there's not a lot of documentation or code snippets out there, and it's oriented to trained programmers (unlike VB or JS where you find all sorts of learning resources). So good mental exercise for you!

John
Logged

Isaac

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3123
Re: Does LR allow scripting?
« Reply #7 on: December 10, 2013, 04:29:09 pm »

As far as I have seen it's only really used in...

Where Lua Is Used :-)


there's not a lot of documentation or code snippets out there

Online version of the first edition of the book "Programming in Lua".
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #8 on: December 10, 2013, 04:33:06 pm »

Yes, I've read or am aware of that stuff - hence my comments.
Logged

Isaac

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3123
Re: Does LR allow scripting?
« Reply #9 on: December 10, 2013, 04:39:58 pm »

From your comments, I wouldn't have guessed ;-)

"Over 40% of Adobe Lightroom is written in Lua."
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #10 on: December 10, 2013, 04:51:31 pm »

Have you read that stuff or the other Lua material? I have. Compared with languages such as those I mentioned, Lua's a niche language with little or nothing that isn't written solely for developers. Fine if that's you, but a fxxxing long haul if you're not.

One might say Lightroom itself is an exercise in seeing if you can write an Adobe app in Lua....
Logged

Isaac

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 3123
Re: Does LR allow scripting?
« Reply #11 on: December 10, 2013, 05:09:02 pm »

Yes, I own a copy of "Programming in Lua" and have read other Lua material.

I think I'll just say that I disagree with your statements and leave it at that. I don't think there's much chance we'd have a productive discussion that was of any real interest to us, let alone others.

And I really should go out an take some photos.
Logged

john beardsworth

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 4755
    • My photography site
Re: Does LR allow scripting?
« Reply #12 on: December 10, 2013, 05:17:40 pm »

I'd stand by my "niche language with little or nothing that isn't written solely for developers". I forced myself to learn it, but the OP's C++ background might make it easier for him.
Logged
Pages: [1]   Go Up