Lightroom 插件在 Windows 上不显示sectionsForBottomOfDialog

问题描述 投票:0回答:1

我有一个在 MacOSX 上完美运行的 lightroom 插件,但在 Windows 上,sectionForBottomOfDialog 不会显示 —— Camera ——之后是否有内容。

我看到其他插件有sectionForBottom,带有文件和按钮,但我找不到问题。没有错误 一直在查看其他插件的代码,但我的设置似乎是正确的

插件提供商

function pluginInfoProvider.sectionsForBottomOfDialog(f, propertyTable )
return {
    {
        title = "Configuration",
        bind_to_object = propertyTable,

        f:view {
            fill_horizontal = 1,
            spacing = f:control_spacing(),
            font            = "<system>",
            ConfigDialogs.DefaultDirectories(f, propertyTable),
            ConfigDialogs.CameraFilm(f, propertyTable),
        }
    },
}
end

代码

function ConfigDialogs.CameraFilm(f, propertyTable)
return
    f:group_box {
        title   = 'Adding Camera and Film',
        fill_horizontal = 1,    
        --------- Camera --------
        f:row { 
            f:static_text {
                title           = "Camera Name:",
                alignment       = "left",
                width_in_chars  = "11",  
            }, 
            f:edit_field {
                alignment       = "left", 
                width_in_chars  = 20, 
                immediate = true, 
                value           = bind "CameraName",        
            },….    

f:row 中的一切似乎都失败了

我的sectionForTopOfDialog正在工作(如果另一个被禁用)

function pluginInfoProvider.sectionsForTopOfDialog( f, propertyTable )
return {
    {
        title = "Analoge Fotografie",
        f:view {
            fill_horizontal = 1,
            spacing = f:control_spacing(),
            font            = "<system>",
            ConfigDialogs.Information(f, propertyTable)
        }
    },
}
end

代码

function ConfigDialogs.Information(f, propertyTable)
return
    f:row {
        spacing = f:control_spacing(),
        f:static_text {
            title = "bla bla bla",
        },
    }
end
plugins lua sdk lightroom
1个回答
0
投票

问题是这样的:

width_in_chars  = "11",

这必须是数值,而不是字符串!或者更好:

width = LrView.share 'labelWidth',
© www.soinside.com 2019 - 2024. All rights reserved.