HISE Logo Forum
    • Categories
    • Register
    • Login

    Save vertical slider colours via preset change?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 264 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.
    • P
      paper_lung
      last edited by

      Is it possible to save different colours for UI components into presets? I want to ideally select UI colours for each preset separately using the colour grid. Not sure if this is possible?

      Screenshot 2024-05-14 at 13.43.58.png

      d.healeyD LindonL 2 Replies Last reply Reply Quote 0
      • d.healeyD
        d.healey @paper_lung
        last edited by

        @paper_lung This property isn't saved per preset, you'd need to script it.

        Libre Wave - Freedom respecting instruments and effects
        My Patreon - HISE tutorials
        YouTube Channel - Public HISE tutorials

        1 Reply Last reply Reply Quote 0
        • LindonL
          Lindon @paper_lung
          last edited by

          @paper_lung place the colours into an object thus:

          {
          "MyControl1" : "0xFFAABBCC",
          "MyControl2": "0xFF112233",

          ..etc..

          }

          Place the object in a panels Panel.data

          make the Panel saveInPreset

          use a onPresetLoad callback to read the data and recolour your widgets...

          HISE Development for hire.
          www.channelrobot.com

          d.healeyD 1 Reply Last reply Reply Quote 1
          • d.healeyD
            d.healey @Lindon
            last edited by

            @Lindon clever

            Libre Wave - Freedom respecting instruments and effects
            My Patreon - HISE tutorials
            YouTube Channel - Public HISE tutorials

            LindonL 1 Reply Last reply Reply Quote 0
            • LindonL
              Lindon @d.healey
              last edited by

              @d-healey said in Save vertical slider colours via preset change?:

              @Lindon clever

              who me? Clearly evidence suggest otherwise...

              HISE Development for hire.
              www.channelrobot.com

              P 1 Reply Last reply Reply Quote 0
              • P
                paper_lung @Lindon
                last edited by

                Awesome, thanks @Lindon, I'll take a look at that!

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

                17

                Online

                1.7k

                Users

                11.8k

                Topics

                102.4k

                Posts