HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. Rognvald
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Groups 0

    Rognvald

    @Rognvald

    0
    Reputation
    1
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online
    Location Bonzi

    Rognvald Unfollow Follow

    Latest posts made by Rognvald

    • RE: Scale the "global_cable" from value 0. - 1. to 0. 300.

      Thanks for your time guys!
      this is the script that got things running smooth. :)

      const var snailFader = Content.getComponent("snailFader");
      snailFader.setAnimation(lottie);
      
      const lottieData = snailFader.getAnimationData();
      
      // Snail Slider to Control Knob / hidden
      
      Content.getComponent("KNsnailFader").setControlCallback(onKNsnailFaderControl);
      
      const var KNsectionKnob1 = Content.getComponent("KNsectionKnob1");
      
      inline function onKNsnailFaderControl(component, value)
      {
      	snailFader.setAnimationFrame(value);
      	KNsectionKnob1.setValue(value * 0.0033);
      	KNsectionKnob1.changed();
      };
      
      posted in ScriptNode
      R
      Rognvald
    • RE: Lottie animation controlling parameters?

      @d-healey I had to add ``` for the Knob to control the "processorid" - "paramaterid".. to get things to work :)

      Wave_Knob.changed();	// update value
      posted in General Questions
      R
      Rognvald
    • RE: Scale the "global_cable" from value 0. - 1. to 0. 300.

      @Christoph-Hart Thanks Christoph! yes that will work, would this be in the Scriptnode or a call back script?
      Whats the most common way to scale control values in Hise. I am coming from Max Msp..

      posted in ScriptNode
      R
      Rognvald
    • Scale the "global_cable" from value 0. - 1. to 0. 300.

      I am attempting to scale the "global_cable" output value 0. - 1. to 0. 300.
      to control a Lottie animation.

      been searching for hours for an answer.. :(

      posted in ScriptNode
      R
      Rognvald
    • RE: Lottie vector animation

      @Rognvald

      To answer my own question.. :)

      To add another Lottie animation in a HISE project, you'll need to first create a new Lottie panel on the UI and then assign a different JSON or B64 string to this new panel using the set animation function. This is done by adding a second animation element and using a distinct variable to hold its data, as HISE's set animation command expects to be assigned a unique animation element.

      // Example for assigning the new animation to the panel
      const secondAnimationData = "PASTE_YOUR_NEW_B64_STRING_OR_JSON_HERE"; // Replace with your actual data
      const myLottiePanel2 = Content.getComponent("MyNewLottiePanel"); // Assuming your new panel is named "MyNewLottiePanel"
      myLottiePanel2.set animation(secondAnimationData);

      posted in Feature Requests
      R
      Rognvald
    • RE: Lottie vector animation

      I seem to be missing how to add more than one "lottie" animation..
      please help

      posted in Feature Requests
      R
      Rognvald