Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

LEGEND ,
May 05, 2025 May 05, 2025

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:

johnrellis_0-1746504289087.png

 

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

 

Bug Fixed
TOPICS
SDK
448
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jun 17, 2025 Jun 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.

Status Fixed
Translate

correct answers 1 Pinned Reply

Adobe Employee , May 06, 2025 May 06, 2025

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

Status Investigating
Translate
4 Comments
Adobe Employee ,
May 06, 2025 May 06, 2025

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

Rikk Flohr: Adobe Photography Org
Status Investigating
Translate
Report
Adobe Employee ,
Jun 17, 2025 Jun 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
Status Fixed
Translate
Report
Enthusiast ,
Jun 17, 2025 Jun 17, 2025

Very happy to see this issue fixed.

Translate
Report
LEGEND ,
Jun 18, 2025 Jun 18, 2025
LATEST

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

Translate
Report