HISE Logo Forum
    • Categories
    • Register
    • Login

    Rotating vertical slider (filmstrip)

    Scheduled Pinned Locked Moved General Questions
    4 Posts 4 Posters 90 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.
    • C
      cassettedeath
      last edited by

      I’m trying to rotate a slider.

      I tried rotating and inverting the filmstrip file, (just within preview for Mac) but this means mouse drags move the slider in the opposite direction.

      What’s the easiest way to do this? (A tad confused as to how to use the g.rotate function)

      Thanks!

      1 Reply Last reply Reply Quote 0
      • D
        dianasv25
        last edited by

        Step-by-Step Solution

        1. Draw a Vertical Slider
          Start with a basic vertical slider (unrotated). For example, a rectangle that moves up and down based on mouse position.

        2. Apply Rotation
          Use g.rotate to rotate the slider around a pivot point (e.g., its center). This visually rotates it, but the mouse interaction will still be in the original coordinate system.

        3. Adjust Mouse Input
          To fix the "opposite direction" issue, transform the mouse coordinates to align with the rotated slider. For a 90-degree rotation (e.g., turning a horizontal slider vertical), swap and invert the mouse X and Y values.

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

          @dianasv25 AI?

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

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey We been watched the whole time… 👀

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

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

            27

            Online

            1.7k

            Users

            11.8k

            Topics

            102.7k

            Posts