HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Chazrox
    3. Posts
    • Profile
    • Following 6
    • Followers 5
    • Topics 159
    • Posts 1,333
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      Anybody know how to check viewport list for 'scroll bar dragging'?

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @HISEnberg Im seeing now! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      ok....

      That wasnt that bad at all...

      So I figured....bypass the actual panel visuals and just execute .startExternalFileDrag() and let it do its thing essentially using the panel just to hold the function I guess.

      The only thing I need to do now (not shown in video) is to check for 'scrollbar drag' and not execute file dragger in that instance.

      File Dragger working.gif

      Here's the working code so far:

      inline function DraggerFinishedCallback()
      {
      	
      };
      
      
      // Broadcaster definition
      const var bcvpAllFilesFiltered = Engine.createBroadcaster({
        "id": "vpAllFilesFiltered",
        "args": ["component", "event"],
        "tags": []
      });
      
      // attach to event Type
      bcvpAllFilesFiltered.attachToComponentMouseEvents(["vpAllFilesFiltered"], "Clicks, Hover & Dragging", "");
      
      // attach first listener
      bcvpAllFilesFiltered.addListener(pnlFileDragger, "FileDraggingNow", function(component, event){
      	
      	if (event.drag)
      	{
      		this.startExternalFileDrag(AudioLoopPlayerAuditioner.getFilename(), false, DraggerFinishedCallback);
      	}
      });
      

      Anybody know how to check viewport list for 'scroll dragging'?

      @d-healey @ustk
      yyyyyeah bro, I can see where this can be useful in a lot of things...I think im getting it now. 🙏 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      ----- continued thoughts.....

      In the end, Im going to want to do .startExternalFileDrag();

      am I going in the right path or am I digging a hole?

      I want the user to be able to click/drag the viewport list item / grab file data / .startExternalFileDrag();

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @d-healey I watched your bc video again and for some reason it just made alot more sense this time around. I think I understand a little more in general now so it wasn't as intimidating. lol Thanks for the video! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @d-healey @ustk
      Yo! ok I got this far. That wasnt that bad.

      Maybe you can check this out and see why when I drag from different parts of the viewport list, the pop up image is sometimes right under my mouse as desired and sometimes it isnt. Is event.x at the time that im calling it 'event.x' of the entire UI or wah? I cant tell where im measuring from.

      I would like to be able to 'check value' first so I can get item text and stuff for my end function eventually but I know thats going to require a different broadcaster callback. I'll figure that out after. I just want to center this image pop up. Any tips? 🙏

      Dragger kinda working.gif

      // Broadcaster definition
      const var bcvpAllFilesFiltered = Engine.createBroadcaster({
        "id": "vpAllFilesFiltered",
        "args": ["component", "event"],
        "tags": []
      });
      
      // attach to event Type
      bcvpAllFilesFiltered.attachToComponentMouseEvents(["vpAllFilesFiltered"], "Clicks, Hover & Dragging", "");
      
      // attach first listener
      bcvpAllFilesFiltered.addListener(pnlFileDragger, "FileDraggingNow", function(component, event){
      	
      	if (event.drag)
      	{
      		this.showControl(true);
      		this.set("x", event.x + 100);
      		this.set("y", event.y + 100);
      	}
      	else
      	{
      		this.showControl(false);
      	}
      });
      
      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @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! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @ustk @d-healey Thanks guys! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey ah crud. Yeah we did. Ok I fixed it. Thank You! Sorry for wasting just a little bit of your time. I'll make it up to you in enthusiasm! haha. Hope you're having a great day! 🙏

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey oh. Sorry. I dont remember that part. I just searched for 'label ENTER' and this thread popped up. I didnt see the other one.

      @d-healey said in How to trigger label callback on enter/return but not on focus change?:

      default behaviour of the label is to trigger

      weird, my lables dont fire after typing a name into a label and pressing ENTER.

      I have a label for my 'save preset name' function and it doesnt fire on pressing enter. hmmm...

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @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.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey Press Enter to fire label callback.

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: Drag & Drop || Viewport List item --> Drop Panel

      @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?

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: How to trigger label callback on enter/return but not on focus change?

      @d-healey Did you ever figure this out? I still need this function badly. Its so simple but crucial. Im not liking 'type name' ---> 'click SAVE button' flow.

      posted in Scripting
      ChazroxC
      Chazrox
    • Drag & Drop || Viewport List item --> Drop Panel

      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!

      posted in Scripting
      ChazroxC
      Chazrox
    • RE: many parameters make hard to edit

      sick.

      posted in ScriptNode
      ChazroxC
      Chazrox