Skip to main content
johnrellis
Genius
May 6, 2025

P: SDK: Can't call LrBinding.makePropertyTable() from scripts in Scripts folder

  • May 6, 2025
  • 5 replies
  • 781 views

Calling LrBinding.makePropertyTable() in a script in the Lightroom Scripts folder always fails with the error:

 

"LrBinding.makePropertyTable: missing functionContext"

 

This prevents making simple scripts using LrDialogs. presentModalDialog(). It also makes it harder to file bug reports involving dialogs. 

 

To reproduce on LR 14.3 / Mac OS and / Windows 11, place this script in the Scripts folder:

local LrBinding = import "LrBinding"
local LrDialogs = import "LrDialogs"
local LrFunctionContext = import "LrFunctionContext"
local LrTasks = import "LrTasks"

LrFunctionContext.callWithContext ("X", function (context)
    local success, err = LrTasks.pcall (function ()
        LrBinding.makePropertyTable (context)
        end)
    LrDialogs.message (tostring (success), err)
    end)

LrFunctionContext.postAsyncTaskWithContext ("X", function (context)
    local success, err = LrTasks.pcall (function ()
        LrBinding.makePropertyTable (context)
        end)
    LrDialogs.message (tostring (success), err)
    end)

 

When you run it, it will fail with the errors:

 

But it runs correctly when run from a plugin or from my Debugging Toolkit's Debug Script command.

 

5 replies

johnrellis
Genius
June 18, 2025

I confirmed the fix. This is excellent -- it's a small thing that will make testing easier.

Legend
June 17, 2025

Very happy to see this issue fixed.

Rikk Flohr_Photography
Community Manager
Community Manager
June 17, 2025

Greetings all, 

 

A new update for the Adobe Photography products has been released.  The June update contains an update for this issue. 

If you do not see the update in your Creative Cloud Application, you can refresh it by hitting [Ctrl/Cmd]+[Alt/Opt]+[ R ].

Note: It may take up to 24 hours for your update to be available in your Creative Cloud app.

 

Thank you for being so patient.

Rikk Flohr: Adobe Photography Org
Legend
May 17, 2025

@johnrellis, @Rikk Flohr: Photography 

 

This hasn't worked for so long, if ever!

Rikk Flohr_Photography
Community Manager
Community Manager
May 6, 2025

@johnrellis I've logged this with the LrC SDK folks. 

Rikk Flohr: Adobe Photography Org