HISE Logo Forum
    • Categories
    • Register
    • Login

    Handling Unloaded Effects in MasterFX Script Without Errors

    Scheduled Pinned Locked Moved General Questions
    3 Posts 2 Posters 65 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.
    • T
      treynterrio
      last edited by

      Hi there,

      I’m working on a project where I have 3 HardcodedMasterFX modules. I have a total of 10 effects that can be loaded into these three modules via comboboxes in the UI.

      My question is: How can I make sure that my control sliders still work without causing errors, even if a specific effect is mentioned in the script but hasn’t been loaded into the HardcodedMasterFX?

      Right now, if the effect module isn’t loaded, the script throws an error because it can’t find the referenced module. Is there a way to check if a module exists before trying to access its parameters, or to make the script more flexible for such cases?

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

        @treynterrio I recently shared this as one (easier) method for handling dynamic effect loading and unloading:

        Link Preview Image
        Modular FX Template - changing Fx order with drag and drop panels

        @AxiomCrux Noo unfortunatley I don't believe you can add and delete modules in the module tree (at least not in HISE script). Probably you would experience t...

        favicon

        Forum (forum.hise.audio)

        In your particular use case yes it is possible. What I've done in the past is written out all the knob values in JSON. I then used a timer (though a broadcaster would be better) to check for what effect is loaded in what effect slot. Then you update the parameters of the knobs based on the network name.

        T 1 Reply Last reply Reply Quote 1
        • T
          treynterrio @HISEnberg
          last edited by

          @HISEnberg thank you! I'll have a look now

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

          12

          Online

          1.7k

          Users

          11.8k

          Topics

          103.2k

          Posts