HISE Logo Forum
    • Categories
    • Register
    • Login

    How do I colour 'SliderPack' sliders by index??

    Scheduled Pinned Locked Moved Solved Scripting
    3 Posts 2 Posters 35 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.
    • ChazroxC
      Chazrox
      last edited by Chazrox

      Im trying to color my sliders by index. I've traced the slider pack to get all properties and i've found this but I cant seem to access it...

      Screenshot 2025-07-05 at 12.00.06 PM.png

      I wanna do something like this...

      		if (SliderPack3.get("displayIndex") == 3)
      		{
      			g.fillAll(Colours.red);
      		}
      

      also found these.....
      Screenshot 2025-07-05 at 12.29.49 PM.png

      d.healeyD 1 Reply Last reply Reply Quote 0
      • ChazroxC Chazrox marked this topic as a question
      • d.healeyD
        d.healey @Chazrox
        last edited by

        laf.registerFunction("drawLinearSlider", function(g, obj)
        {
        	if (obj.id == 3)
        	{
        		g.fillAll(Colours.red);
        	}
        });
        

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

        ChazroxC 1 Reply Last reply Reply Quote 1
        • ChazroxC
          Chazrox @d.healey
          last edited by

          @d-healey You done it! I've tried about 20 things. lol Thank You! 🙏

          1 Reply Last reply Reply Quote 0
          • ChazroxC Chazrox has marked this topic as solved
          • First post
            Last post

          42

          Online

          1.8k

          Users

          12.1k

          Topics

          105.0k

          Posts