Ad
Ad
Ad
Pages: [1]   Bottom of Page
Print
Author Topic: Does LR allow scripting?  (Read 831 times)
l_d_allan
Full Member
***
Offline Offline

Posts: 205



WWW
« on: December 10, 2013, 06:51:54 AM »
ReplyReply

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 ... let me know if you're in the area and would like a free guided tour of our photographically "target-rich environment"
kaelaria
Sr. Member
****
Offline Offline

Posts: 2184



WWW
« Reply #1 on: December 10, 2013, 07:12:18 AM »
ReplyReply

Nope
Logged

john beardsworth
Sr. Member
****
Offline Offline

Posts: 2455



WWW
« Reply #2 on: December 10, 2013, 07:39:10 AM »
ReplyReply

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: 2184



WWW
« Reply #3 on: December 10, 2013, 07:43:59 AM »
ReplyReply

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

john beardsworth
Sr. Member
****
Offline Offline

Posts: 2455



WWW
« Reply #4 on: December 10, 2013, 07:57:54 AM »
ReplyReply

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: 205



WWW
« Reply #5 on: December 10, 2013, 01:05:52 PM »
ReplyReply

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 ... let me know if you're in the area and would like a free guided tour of our photographically "target-rich environment"
john beardsworth
Sr. Member
****
Offline Offline

Posts: 2455



WWW
« Reply #6 on: December 10, 2013, 01:49:53 PM »
ReplyReply

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: 2331


« Reply #7 on: December 10, 2013, 03:29:09 PM »
ReplyReply

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: 2455



WWW
« Reply #8 on: December 10, 2013, 03:33:06 PM »
ReplyReply

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

Isaac
Sr. Member
****
Offline Offline

Posts: 2331


« Reply #9 on: December 10, 2013, 03:39:58 PM »
ReplyReply

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: 2455



WWW
« Reply #10 on: December 10, 2013, 03:51:31 PM »
ReplyReply

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: 2331


« Reply #11 on: December 10, 2013, 04:09:02 PM »
ReplyReply

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: 2455



WWW
« Reply #12 on: December 10, 2013, 04:17:40 PM »
ReplyReply

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]   Top of Page
Print
Jump to:  

Ad
Ad
Ad