@Mickolos The solution is much simpler than the code you've already written :) It's basically just adding one line.
This is your knob callback
inline function onknbLottieControl(component, value)
{
pnlLottie.setAnimationFrame(value);
}
Within this same callback you use setAttribute to control your module.
inline function onknbLottieControl(component, value)
{
pnlLottie.setAnimationFrame(value);
WaveformGenerator1.setAttribute(WaveformGenerator1.WaveForm1, value);
}
The only extra thing you need to do is get a reference to the waveform generator within on init - HISE will create this for you if you right-click on the waveform generator module's header and select create generic script reference. Put this near the top of your script:
const var WaveformGenerator1 = Synth.getChildSynth("Waveform Generator1");