HISE Forum
    • Unread
    • Recent
    • Admin
    • Register
    • Login

    CSS :nth-child() supported???

    Scheduled Pinned Locked Moved Scripting
    9 Posts 3 Posters 77 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.
    • OrvillainO
      Orvillain
      last edited by

      Is :nth-child() supported in HISE's implementation of CSS?
      https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Selectors/:nth-child

      I'm looking to do different things to each of the draggers in the modulation controller. But it doesn't seem to work?

      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
      Crafting sound at every level. From strings to signal paths, samples to systems.

      1 Reply Last reply Reply Quote 0
      • Felix WF
        Felix W
        last edited by

        Yes, it seems it doesn't support it.

        besides
        I would also like to request CSS animation functionality.😆

        @keyframes
        

        @Christoph-Hart

        //I am a new student at HISE._
        //Windows11 & MacOS Ventura 13.6.7_

        OrvillainO 1 Reply Last reply Reply Quote 0
        • OrvillainO
          Orvillain @Felix W
          last edited by

          @Felix-W Bah.... I'm just gonna write my own modulation controller then. TBH, I prefer that anyway, coz css still messes with my head.

          Musician - Instrument Designer - Sonic Architect - Creative Product Owner
          Crafting sound at every level. From strings to signal paths, samples to systems.

          Christoph HartC 1 Reply Last reply Reply Quote 0
          • Christoph HartC
            Christoph Hart @Orvillain
            last edited by

            @Orvillain you should be able to access them by the #id selector individually, no?

            OrvillainO 1 Reply Last reply Reply Quote 0
            • OrvillainO
              Orvillain @Christoph Hart
              last edited by

              @Christoph-Hart said in CSS :nth-child() supported???:

              @Orvillain you should be able to access them by the #id selector individually, no?

              If I can, then I'm stupid. Coz I couldn't figure it out! Is okay.... I'm three quarters of the way there with my own matrix controller now!

              Musician - Instrument Designer - Sonic Architect - Creative Product Owner
              Crafting sound at every level. From strings to signal paths, samples to systems.

              Christoph HartC 1 Reply Last reply Reply Quote 0
              • Christoph HartC
                Christoph Hart @Orvillain
                last edited by

                Ah sorry, no you can't. The inspector shows all available selectors and the ID isn't one of them.

                becc5f70-f620-4558-a4a6-95b8fab42a1d-image.png

                (The matrix columns can be addressed through the ID but I thought I've added it here to, but apparently that's not the case).

                But yeah if you're almost there, just go with your own dragger. Note that there's a snippet in the example database that also gets you 80% there:

                https://docs.hise.audio/tutorials/ui/index.html#drag-modulated-parameter

                OrvillainO 1 Reply Last reply Reply Quote 1
                • OrvillainO
                  Orvillain @Christoph Hart
                  last edited by Orvillain

                  @Christoph-Hart said in CSS :nth-child() supported???:

                  Ah sorry, no you can't. The inspector shows all available selectors and the ID isn't one of them.

                  becc5f70-f620-4558-a4a6-95b8fab42a1d-image.png

                  (The matrix columns can be addressed through the ID but I thought I've added it here to, but apparently that's not the case).

                  But yeah if you're almost there, just go with your own dragger. Note that there's a snippet in the example database that also gets you 80% there:

                  https://docs.hise.audio/tutorials/ui/index.html#drag-modulated-parameter

                  Yep, been referencing that :)

                  I've actually got quite a nice dragger right now. The UI is basically done. I just need to setup all the matrix connection stuff. Also I realised this probably gets me a cool benefit - I can add an attribute to my parameter dictionary for scale/unipolar/bipolar, and set the connection to that by default when the connection is created. I couldn't see a way to do that in the floating tile solution, but confess I didn't investigate very hard.

                  Thanks for the confirmation that I'm not a complete idiot 😁

                  Musician - Instrument Designer - Sonic Architect - Creative Product Owner
                  Crafting sound at every level. From strings to signal paths, samples to systems.

                  Christoph HartC 1 Reply Last reply Reply Quote 0
                  • Christoph HartC
                    Christoph Hart @Orvillain
                    last edited by

                    I can add an attribute to my parameter dictionary for scale/unipolar/bipolar,

                    I've added a method requested by @DanH where you can setup default properties for each new connection (so you can eg. set the base intensity to 75% or whatever floats your boat.

                    https://docs.hise.dev/scripting/scripting-api/scriptmodulationmatrix/index.html#setmatrixmodulationproperties

                    OrvillainO 1 Reply Last reply Reply Quote 2
                    • OrvillainO
                      Orvillain @Christoph Hart
                      last edited by

                      @Christoph-Hart said in CSS :nth-child() supported???:

                      I can add an attribute to my parameter dictionary for scale/unipolar/bipolar,

                      I've added a method requested by @DanH where you can setup default properties for each new connection (so you can eg. set the base intensity to 75% or whatever floats your boat.

                      https://docs.hise.dev/scripting/scripting-api/scriptmodulationmatrix/index.html#setmatrixmodulationproperties

                      siiiiiiicccckkkkk!! Nice one Christoph!

                      Musician - Instrument Designer - Sonic Architect - Creative Product Owner
                      Crafting sound at every level. From strings to signal paths, samples to systems.

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

                      18

                      Online

                      2.1k

                      Users

                      13.0k

                      Topics

                      112.3k

                      Posts