HISE Logo Forum
    • Categories
    • Register
    • Login

    function not found "ScriptFX.setParameter("valueknob", value);"

    Scheduled Pinned Locked Moved General Questions
    5 Posts 2 Posters 47 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.
    • E
      el_lauta
      last edited by

      Hello everyone, it's my first time on the forum and I'm here to seek help on how to combine knobs + lottie files + value changes in some ScriptFX parameter.

      This is my code:

      Content.makeFrontInterface(500, 500);
      const lottie = "896.nT6K8CVnWT6F.XdXkMBDyICfYgnsVfsF2HvDnHtXNtUHpONQQQQlSdcWN9J....f5qE.bAvW.nZTJVOcna96oGgenqPzJSzoVO8OxNlJ5oiipePsdmx3qFFqQ0XMfjcdr2al.b05Lo5jyW6AdOcJNld5zb0h2oUGdmd1pmdEuSpd5RjHw6j+MjkqBdOcKWbLAbopnUmd+C83ELf.4Mh.5dssA8EKJHGggkLBninb3c5k4AkuTtXplO5ZrUmdsG99r56T6UAiEc9v6jb5dbcLuGWn5zCoSJJ94RevTHvTKYTwV5jd5Rfb7N4Vxes9ur4VP1yZQn5gxSV67kpiDq0oAHNLgBKF+kj0om7UMQbtNZWqEMrQrO2n7DMjNhSEHZF2ok7wL0WISkngXq4Hdm7uqXHGqkAGZiajCczMGoRQyPBKfvEKdDEGOol4Ue..Ytnhd53bEiowkTxXq3yTPET1HWS7N4wFWiiCF66zGkL3SsVqusdoS8jOHTJWRtbQlLPG88POp+oQY06hRbkrT9ZLm56zybOr8f+2jKGKJUtFb8hOW.n0fFVToYFg.PPPQCE.PAfgpxF20tbTVtYBsujDmuIs.GYAF94Bo.+TaxREF+Zh3if+YqgsrscbXfUekzAAikKkWEu+9nfNOSCjuZGfp07xAxaL6wbq19T6vSpFHpqdBNqbhIkEbldFHtcODLVIVo+Ka+xZAqoDCjpTbFHTJNCbsJaLIiqB7bsU37MLvaQA.zFP8Aj6JONxBJXTSaraqBBqkFDRoBTyZ9bIRSACPUZ60fAPy0EjQewdHL0dBWEznD8sN.LWkFQ2pLryGkEzFx.PB2oEFm3okCEcZuRB7WBOe3hTliHeJTwdRE3Rh5Gb82hTxtCUKGLsgn3G+FWUA1.T7MMeR7VbsxyRZLvHjTGXbhMMTYwBjk7g3No61nasgezvX2XvcAF0sWMCvmng.C.D8tk1gbzGTLK3L7.ApuvPle4vClbK9KSK5Vhqk1iQqUoWFaoxCDUlmfHlsbkSY1lFl9g4Cs2ys87pgJWpFEMleYuVzDXBP13qcsrIldBFwN2rag6IRwxiCPz25AJJJcqMoDjM6UYFcEPVQ1ttulk3NfljAdr1xH+f4EI6ONntyNo7qL2XoVcKLYcanlmkZ4a0kaD8nF+kr2GeSUhJLHCbJxY0GSAgg+jaHwea44A";
      const var PanelLottie = Content.getComponent("PanelLottie");
      PanelLottie.setAnimation(lottie);
      const lottieData = PanelLottie.getAnimationData();
      const var Knob1 = Content.getComponent("Knob1");
      const var ScriptFX = Synth.getEffect("Script FX");
      
           //Knob 1
      inline function onKnob1Control(component, value)
      {
      	PanelLottie.setAnimationFrame(value);
      	ScriptFX.setParameter("valueknob", value);
      };
      
      Content.getComponent("Knob1").setControlCallback(onKnob1Control);
      

      but

      beta 1.2:! Line 13, column 23: function not found {SW50ZXJmYWNlfHwxNjI5fDEzfDIz}
      

      the error is in "ScriptFX.setParameter("valueknob", value);" and I don't know why... can someone help me?

      HISEnbergH 2 Replies Last reply Reply Quote 0
      • HISEnbergH
        HISEnberg @el_lauta
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • HISEnbergH
          HISEnberg @el_lauta
          last edited by

          @el_lauta setParameter doesn't exist, where did you get that from?

          Usually HISE will offer autocomplete or you can search on the lefthand side under API for the different functions related to a specific API.

          So in this case you have ScriptFX = Synth.getEffect("Script FX"); This means you are referencing it as an Effect. If you search "Effect" in the API browser you will get all the functions related to it. In your case you want to try ScriptFX.setAttribute(int parameterIndex, float newValue)

          The docs are also online here:

          Link Preview Image
          HISE | Scripting | Effect

          The FX script reference

          favicon

          (docs.hise.dev)

          E 2 Replies Last reply Reply Quote 0
          • E
            el_lauta @HISEnberg
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • E
              el_lauta @HISEnberg
              last edited by

              @HISEnberg Sorry, my friend... it was just a silly thing... I've already solved it, thank you very much!!

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

              13

              Online

              1.8k

              Users

              12.1k

              Topics

              105.4k

              Posts