HISE Logo Forum
    • Categories
    • Register
    • Login

    script & panel

    Scheduled Pinned Locked Moved Scripting
    4 Posts 2 Posters 180 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Lumi283
      last edited by

      Hi, I have a question. What command should I use to set a component inside a panel in hise script? Thanks.

      ulrikU 1 Reply Last reply Reply Quote 1
      • ulrikU
        ulrik @Lumi283
        last edited by

        @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
        });
        

        Hise Develop branch
        MacOs 15.3.1, Xcode 16.2
        http://musikboden.se

        ulrikU 1 Reply Last reply Reply Quote 0
        • ulrikU
          ulrik @ulrik
          last edited by

          @ulrik if you select a component in the "Component List" and press "j" on your keyboard you'll get the components json information

          json.gif

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          1 Reply Last reply Reply Quote 0
          • L
            Lumi283
            last edited by

            thank you for the tips!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post

            49

            Online

            1.7k

            Users

            11.7k

            Topics

            101.9k

            Posts