Skip navigation
jsakhtar
Currently Being Moderated

New to Lightroom, Development Resource

Mar 4, 2012 2:20 AM

Tags: #lightroom #sdk #developper #development_tools #sdk3 #code_hint

I just wanted to say hello. I am a new Lighroom user interested in exploring the SDK in my spare time.

 

I am the author of a Lua IDE tool, well it is a plugin to IntelliJ IDEA. It offers support for code completion, api documenation, and a whole host of other features.

 

While I am learning about the Lightroom SDK, I thought it might be nice to get to know everyone in the community, and see if there was anything that I could add to my tool to help improve the current workflows.

 

I guess first on my list will be to add the Lightroom SDK descriptions to the IDE so code completion and documentation will work. I can find this information on my own, but if anyone has any advice or knows of any trouble I may run into, Do let me know.

 

Thanks Again,

 

Jon

 

 

PS. Here is a link to some info about the Lua plugin https://bitbucket.org/sylvanaar2/lua-for-idea/wiki/Home

 
Replies
  • Currently Being Moderated
    Mar 4, 2012 4:19 AM   in reply to jsakhtar

    Hi Jon,

     

    Thanks for dropping by! I started using IntelliJ because of your plugin and

    have been quite happy with it. Definitely makes coding plugins much easier.

     

    The API Reference in the SDK download should give you the info you need to

    create those SDK bindings you refer to. It was on my TODO list for someday

    but that day hadn't come yet. I certainly won't complain if you beat me to

    it!

     

    Would be happy to talk to you off list about how I've been using the Lua

    plugin to see if it can give you some ideas. I'll contact you using the

    details on the GitHub site.

     

    Thanks, Matt

    (Apologies for the brevity - sent from my Android)

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 7, 2012 10:49 PM   in reply to jsakhtar

    I'm an old IDEA user, but I never though the Lua module was available for the community edition, thanks for the info!

     

    I gave it a quick spin, but for some reason not even the built-in code completion worked (e.g. string or table module), though I do have stdlibrary directory in my classpath.  I'd also be interested in LR APIs, and I'd be glad to help with that.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 24, 2012 3:06 PM   in reply to jsakhtar

    HI Jon,

     

    Thank you for the EditPadPro Lua support - I use it all the time - I was pretty entrenched by the time IntelliJ IDEA came along so never made the switch - should I???

     

    PS - I'm the one who's done most of the lrdevplugin stuff at assembla.com.

     

    Note: My subversion client has been broken for a while so the elare plugin framework is out-of-date there - please contact me for fresh code if interested.

     

    Cheers,

    Rob

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 18, 2012 9:13 PM   in reply to jsakhtar

    Jon - Curious if you ever made progress on a Lightroom plugin for IntelliJ? It'd be great to have.

     

    Dave

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 2, 2013 7:58 PM   in reply to DFBurns

    Hi Dave,

     

    This has been available for some time now. I've been using it for at least a year now and find it very useful. Just make sure that you don't upgrade to IntelliJ 12 yet as I'm pretty sure the plugin isn't quite ready for the changes introduced in that version yet.

     

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 2, 2013 8:25 PM   in reply to Matt Dawson

    Hi, Matt.

     

    I was referring to the Lightroom-specific plugin mentioned in #3 above. I've been using the Lua plugin also but upgraded to 12 before knowing it wasn't compatible. If the Lua one were working, I might be interested in helping with the Lightroom-specific one.

     

    db

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 2, 2013 9:46 PM   in reply to DFBurns

    OK, sorry. Hadn't picked that point up when I originally read #3.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 21, 2013 6:54 AM   in reply to jsakhtar

    Thanks, Jon.

     

    I have the latest Lua plugin installed and just downlaoded the Lightroom API library. Can you straighten one thing out? You called it a Lightroom API plugin but it seems more like, from IntelliJ's point of view, that I should add it to my project as an external library. True?

     

    I have some other questions about getting things working right. In general, where is the best place to discuss issues for the Lua plugin and Lr API library?

     

    db

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 23, 2013 2:19 PM   in reply to DFBurns

    I've been chatting to Jon about this plugin recently, so will try to answer some of this.

     

    DFBurns wrote:

     

    I have the latest Lua plugin installed and just downlaoded the Lightroom API library. Can you straighten one thing out? You called it a Lightroom API plugin but it seems more like, from IntelliJ's point of view, that I should add it to my project as an external library. True?

     

    Correct. See the wiki for installation details. BTW the wiki had a few issues and has only just been fixed so you probably couldn't access this at the time you posted this.

     

     

    DFBurns wrote:

     

    I have some other questions about getting things working right. In general, where is the best place to discuss issues for the Lua plugin and Lr API library?

     

    The wiki includes some contact details for Jon. It also includes some information on how to build and install custom APIs, libraries and documentation which you might find useful.

     

    It turns out the SDK plugin is currently limited to LR 3's SDK, and has some issues that mean the function name auto-completion should work but the LR SDK documentation probably won't. Hopefully this will be resolved before too long. I'm trying to give Jon a hand with it so we'll see what happens.

     

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2013 9:17 AM   in reply to Matt Dawson

    Thanks, Matt.

     

    My project is all set up. Since you mention contacting Jon directly, is it safe to assume there's no forum where multiple people could get involved in questions (e.g. you)? For instance, where's the best place to ask why import statements are not resolving? If I have the line "local LrBinding = import 'LrBinding'", the import keyword is highlighted with the message "Unassigned variable usage". Somewhat similar, if I say "require 'X'" followed by "X.myfunc()", the X in X.myfunc is highlighted with the same message.

     

    Thanks,

    db

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 26, 2013 3:43 PM   in reply to DFBurns

    DFBurns wrote:

     

    My project is all set up. Since you mention contacting Jon directly, is it safe to assume there's no forum where multiple people could get involved in questions (e.g. you)? For instance, where's the best place to ask why import statements are not resolving? If I have the line "local LrBinding = import 'LrBinding'", the import keyword is highlighted with the message "Unassigned variable usage". Somewhat similar, if I say "require 'X'" followed by "X.myfunc()", the X in X.myfunc is highlighted with the same message.

     

    Thanks,

    db

    We are working on some issues with the plugin.

     

    There aren't any forums for the plugin. I'll see about getting a public issues tracker setup.

     

    Some known issues currently being looked into:

    - import function is not currently supported, nor other Lightroom specific keywords, globals and functions mentioned in the SDK guide.

    - the stdlibrary restrictions Ligthroom places on plugins aren't currently reflected in the SDK plugin (e.g. all the debug methods are listed as valid even though Lightroom doesn't allow some of rhtem)

    - the SDK is currently LR3 only. LR4 will be added once we resolve some of the other issues.

    - doco is not currently able to be displayed for objects. e.g. f:checkbox() won't show the LrView:checkbox() doco yet.

     

    Some tips:

    - the require issue you've noted can be worked around by right clicking on your source file folder and selecting the "mark directory as -> source root" option. But require scoping isn't honoured at the moment so the warnings for required files might not reflect their true scoping

    - the documentation (e.g. ctrl + q) isn't working unless you tweak the plugin source to match your environment. e.g. I had to change a line in lr3api.lua to

        LOCAL_LUA_DOCS = [[C:\_Dev\Lua\idlua-sdk-lightroom\help.html]]

      because that was where I installed my plugin. Please note that there is some issue with IntelliJ 12 support that means even this won't get the doco working on that version.

     

    Hopefully that should help you get started. And I've added a wiki homepage to the project that links to documentation that will help people get started.

     

    Matt

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 26, 2013 9:15 PM   in reply to Matt Dawson

    Matt -

     

    Thanks for taking the time to give detailed info. Really helpful. Looking forward to improvements and let me know if you/Jon need help with testing.

     

    db

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points