script & panel
-
Hi, I have a question. What command should I use to set a component inside a panel in hise script? Thanks.
-
@ABYSS_CO You can use
Content.setPropertiesFromJSON()
const panel = Content.addPanel("panel", 100, 100); const insideBtn = Content.addButton("insideBtn", 0, 0); Content.setPropertiesFromJSON("insideBtn", { "type": "ScriptButton", "id": "insideBtn", "parentComponent": "panel" // this is placing the btn inside the panel });
-
@ulrik if you select a component in the "Component List" and press "j" on your keyboard you'll get the components json information
-
thank you for the tips!