HISE Logo Forum
    • Categories
    • Register
    • Login

    Flashing Button / LAF

    Scheduled Pinned Locked Moved General Questions
    9 Posts 4 Posters 338 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.
    • DanHD
      DanH
      last edited by

      Do-able?

      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
      https://dhplugins.com/ | https://dcbreaks.com/
      London, UK

      LindonL ? 2 Replies Last reply Reply Quote 0
      • LindonL
        Lindon @DanH
        last edited by

        @DanH use a timer...

        HISE Development for hire.
        www.channelrobot.com

        DanHD 1 Reply Last reply Reply Quote 0
        • DanHD
          DanH @Lindon
          last edited by

          @Lindon in the LAF callback? Will give it a shot. Thinking about the timer though (and I'm probably being stupid), how do I script the timer to do something and then do the opposite / something else every other second (for example)?

          DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
          https://dhplugins.com/ | https://dcbreaks.com/
          London, UK

          LindonL ustkU 2 Replies Last reply Reply Quote 0
          • LindonL
            Lindon @DanH
            last edited by

            @DanH - I wouldnt do it in the LAF, but the logic is pretty simple:

            myButton.setValue(1 - myButton.getValue());
            
            

            HISE Development for hire.
            www.channelrobot.com

            1 Reply Last reply Reply Quote 2
            • ?
              A Former User @DanH
              last edited by

              @DanH Lottie! https://lottiefiles.com/74238-button-ripple-loading

              1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @DanH
                last edited by ustk

                @DanH said in Flashing Button / LAF:

                @Lindon in the LAF callback? Will give it a shot. Thinking about the timer though (and I'm probably being stupid), how do I script the timer to do something and then do the opposite / something else every other second (for example)?

                Not with custom LAF because that would mean using an external variable which isn't recommended.

                If you make your button with a panel it is easy though:

                • Invert a bool inside the timer at the time interval you wish bool = !bool;
                • Repaint the panel and use the bool to do what you want (change colour or anything fancier)

                Can't help pressing F5 in the forum...

                DanHD 1 Reply Last reply Reply Quote 0
                • DanHD
                  DanH @ustk
                  last edited by

                  @ustk Thansk! I ended up using a panel 2 timers which turn eachother on / off and show / unshow the panel.

                  How would I script the bool?

                  DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                  https://dhplugins.com/ | https://dcbreaks.com/
                  London, UK

                  ustkU 1 Reply Last reply Reply Quote 0
                  • ustkU
                    ustk @DanH
                    last edited by ustk

                    @DanH 🙂

                    HiseSnippet 984.3ocsVEtaaaCDlxNZn1acXEnO.p8WJadBRowosXXXYwwYvXKoFyYcCXnnfgh1hHTjpjT0yXnuK6QbuAaGEkijybCJLVMjkMu69H+zw69nlpjDpVKUHudWtpfh79L+YqDlrQYXl.M4Tj2m6eNVanp.moSVUf0ZZJxyq6OXM30aOT0m+96NAywBBswDB8RIiP+IVNyzXc5w+HiyOCmRujk2J5COdBQJFI4xRfOc8iQEXx03EzKv1v53i79jwoLiTMyfMTMxauSjoqlkIWJbw+RllcEmZGjflASjy7YRdpkwVqnQYLd5z0O2ZDLKSaxBccYgG5eNKkci8lrwWT4HnAQ67gWmMoW2MnWRa5E2hdagRdsnzdNJ8.+YDEqvz3wxmO0eh.1bligzdap3hE04u55ORBQHLQ43qomofA2fH7n33AAvs8+l98gTu1D7VrJXJVP4IAeavZjKnlQx7Bo.FD9Xm6GCXb+KJEavQEshmnnPBXJ1jEZm41goyYbJDpQURabooloPF17yxRCSPCmWJHFlTDtX+9+Y+dKrA3pKBc+niVlwfbbt7ZJrDPDoJ7xwbNqPSC+8ChFNv9M44Uee0ffgQwt3lCkd2D2v3Av0SrWAeUfIioawxuLI9UaASxAeHf52qwQQDgSwJatXCqZCVYtftbV4UU4p3nCFDDGczP2DvlGDdqYe+981XFdSIFdtMLxkR.8PK5mWc+YMSDkqo2IrCqh0d6oUPcqtsP.a2nZgCpCNQVJR0NdAC+UVpcStYKn5AoElAA30I+2YqEZsiaa9Uivb9UPWdyVd0N9sdtAd7naYZctTQKrUNg0Kv5o2lZqVfvjXa885oOPJtPZnundc5+t9A21074a0ms3VI4bXJ2la2hcG.CEk4WQUCfVLdI8l.g96MEM7e+hFs0zHtdsVAJESDLyKJnh2mRGptAE92uL4THUZUZpsAwUPUFlkBdmReKHa6zc54eJUesQVTEasJ.nDap7d+0pR17NhAZO2y2sGf9iFkc1wqZOXosposgLJaQlosEz+U.DjdkokbrYS8X6gP0Nf78FhfVgNglYV09Pp+2Do+Po3C7mxLjrsywNagivtxGCNVez188GOeNkXZH3d9m8aebNGC4DzWbN1nXP8f+Ek4y.4aBEVcATkXq285XqLciisisYfYTQZ0f+A9T6LwN1q1YxZmnbLQIeMw0kYO77dUV.NIpdugdvKv.iCRPUcd.N+3nXTNbN9qID6i+WCMKaGyA6.lmrCXNbGvLbGvbzNf4o6.lmcmXruB02WZj4t1AvvzwUxQddiEXnxppJD8uPGE69T
                    

                    Can't help pressing F5 in the forum...

                    DanHD 1 Reply Last reply Reply Quote 1
                    • DanHD
                      DanH @ustk
                      last edited by

                      @ustk haha, very nice!

                      DHPlugins / DC Breaks | Artist / Producer / DJ / Developer
                      https://dhplugins.com/ | https://dcbreaks.com/
                      London, UK

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

                      30

                      Online

                      1.8k

                      Users

                      12.0k

                      Topics

                      104.1k

                      Posts