HISE Logo Forum
    • Categories
    • Register
    • Login

    Drag & Drop || Viewport List item --> Drop Panel

    Scheduled Pinned Locked Moved Unsolved Scripting
    10 Posts 4 Posters 50 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

      I want to be able to 'drag' an item out of the viewport list and drop it over a 'drop panel' and have that file be loaded into a defined AudioLoopPlayer.

      Screenshot 2025-11-20 at 7.21.05 AM.png

      I've found this....am I on the right track?

      Screenshot 2025-11-20 at 7.23.30 AM.png

      I can script a drop panel and callbacks....I just dont know how to start the 'drag' action starting from a viewport item.

      I imagine this would be the flow....

      //Viewport List Item
      if (drag)
      {
      // 1. Get filepath of file matching viewport index selection
      // 2. Execute .startExternalFileDrag(); // onFinished callback  Do nothing?
      }
      
      // Drop Panel
      if (obj.drop)
      {
      // Load drop file into audioLoopPlayer
      
      }
      

      Can you help me figure this out? 🙏

      Thanks in advance!

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

        @Chazrox It might be possible with a mouse broadcaster. Start by tackling the dragging from the viewport and see if you can solve that. If it's possible then the panel dropping part is probably pretty easy.

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

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

          @d-healey yeah thats the part I need help with. Once I get the drag function going I think I can finish the rest. I've havent been able to figure it out yet. Is there an option to set "allow callbacks" for viewports? or is that irrelevant?

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

            @Chazrox said in Drag & Drop || Viewport List item --> Drop Panel:

            Is there an option to set "allow callbacks" for viewports? or is that irrelevant?

            No such thing as far as I know. A mouse broadcaster is where you should look, it's basically the same thing.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

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

              @d-healey Ok. Honestly I've tried to understand Broadcasters a couple times and failed miserably. lol. I'll try that again. I feel like it'll help me down the line as well. Wish me luck! ha.

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

                @Chazrox Yeah broadcasters are great for tons of stuff. They're a little bit complicated for individual tasks like this, but it's the only way to handle it. They really shine though for larger tasks and can save a ton of time and lines of code.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

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

                  @Chazrox I second Dave on this. I had a hard time understanding them but once done they reveal very powerful in some situations ☺

                  Hise made me an F5 dude, browser just suffers...

                  ChazroxC 1 Reply Last reply Reply Quote 1
                  • ChazroxC
                    Chazrox @ustk
                    last edited by

                    @ustk @d-healey Thanks guys! 🙏

                    HISEnbergH 1 Reply Last reply Reply Quote 0
                    • HISEnbergH
                      HISEnberg @Chazrox
                      last edited by

                      @Chazrox just a side note start with the Broadcast Wizard (and David's video). I found it super helpful to understand how the Broadcast system works using the Broadcast wizard first, and ever since then I use them all over the place.

                      Sonic Architect && Software Mercenary

                      ChazroxC 1 Reply Last reply Reply Quote 1
                      • ChazroxC
                        Chazrox @HISEnberg
                        last edited by

                        @HISEnberg I think the part that gets me is understanding what arguments to use and why, and in what order. I can assume, but I dont feel sure in my choices just yet. I've been using helper functions so Im barley starting to understand how to pass arguments to other functions but im still getting comfy with everything. Appreciate the advice! 🙏

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

                        14

                        Online

                        2.0k

                        Users

                        12.9k

                        Topics

                        111.8k

                        Posts