Hello everybody,
Nice to meet you. I’m pretty new in HALion scripting and the Macro Designer. I have two questions regarding knobs.
Is it possible to restrict the knob animation to two states, but not the first and the last one? I’d like to use a knob as a switch between two states, but I don’t like to have -120 / +120 degrees spread. I’d like to have let’s say -45 / +40 degrees (0 is 12 o’clock – upwards). I have tried the MIDI Module Lua script, GUI script within the knob template, but wothout any success.
The second question is releated. I also made a knob with only two states, but HALion recognizes it as a single image (with two knobs – one on the top of the other), but not as a Spritesheet (animation). There is also another image, which isn’t recognized as an animation in my Resources.
If you create your own knobs you may need to set the number of frames manually.
Go to resource tab, select your image and check the number of frames. Sometimes HALion detects this correctly but often not.
If you really want only 2 states of the knob you can create a button instead. Use the sections from your image as on/off states. But doing it this way it will respond as a button. You would need to click it to change the state instead of click and drag as you would expect for the knob.
Thank you very much! Yes, I wanted to avoid the “button behavior” if it’s possible, because of the same look of the graphic element. But how can I adjust the number of frames, please? I can’t find it anywhere, and I was searching for it really extensively.