After effects 脚本 - 将正则表达式文本传递到 Window.add() 函数的文档

After effects Script - Documentations for passing a regexp text into the Window.add() function

我正在学习如何在 AE 中制作 UI 面板,我在 Youtube 上有这段代码

      var myPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Dockable Script", undefined, {resizeable:true, closeButton: false});

      res = "group{orientation:'column',\
                groupOne: Group{orientation:'row',\
                    createCompButton: Button{text:'Create Comp'},\
                },\
                groupTwo: Panel{orientation:'row',\
                    deleteCompButton: Button{text:'-'},\
                    deleteText: StaticText{text:'Delete Active Comp'},\
                },\
                groupThree: Group{orientation:'row',\
                    closeButton: Button{text:'Close'},\
                },\
            }";

     myPane.grp = myPanel.add(res);

但我找不到任何关于这种将所有内容包装到正则表达式文本中的文档。我找到的都是这样的:

myPanel.createCompButton = myPanel.add('button', [10,10, 120, 60], "Create Comp", {name: 'create'});

有那种包装的文档吗?

示例代码中 res 值的“包装”称为“资源字符串”,它类似于由 Adob​​e 框架驱动的 UI 的语义标记。

这是关于该主题的文档:

https://extendscript.docsforadobe.dev/user-interface-tools/resource-specifications.html?highlight=resource%20string#resource-specifications