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

Dynamic view with LRC SDK in Lua

Explorer ,
Feb 09, 2025 Feb 09, 2025

Hi,

 

I'm currently doing further development of a Lightroom Classic plugin written in Lua. In the GUI part of it, I need to change parts of the view depending on the current configuration. To be specific I need an amount of f:edit_field() that is not fixed. Anyone got an idea, how this possible. I saw the example in the SDK manual on page 114, but this doesn't feed my needs.

 

I tried for testing:

     local dialogView = f:row {
        bind_to_object = propertyTable,
        f:group_box {
            title = LOC "$$$/lrc-ai-assistant/ResponseStructure/ConfigureResponseStructure=Keywords",
            f:edit_field {
                value = bind 'keywordCategories'
            },
        },
    }

    table.insert(dialogView, f:row {
            bind_to_object = propertyTable,
            f:group_box {
                title = LOC "$$$/lrc-ai-assistant/ResponseStructure/ConfigureResponseStructure=Keywords",
                f:static_text {
                    title = Defaults.defaultKeywordCategories,
                },
            },
        }
    )

local result = LrDialogs.presentModalDialog({
        title = LOC "$$$/lrc-ai-assistant/ResponseStructure/ConfigureResponseStructure=Configure data generation and mapping",
        contents = dialogView,
    })

 

But the part inserted with table.insert doesn't show up. Anybody got an idea, what I'm doing wrong here?

 

Many thanks in advance

Bastian

TOPICS
SDK
278
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

Explorer , Feb 09, 2025 Feb 09, 2025
Explorer ,
Feb 09, 2025 Feb 09, 2025
LATEST
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