Panning Knob with LAF
-
Hey,
I was wondering how you might go about achieving the attached knob using look and feel? It is easy with graphics but I am not so sure with LAF.
Thanks in advance!
-
@afinch Hello mate
Take a look at this Thread:
https://forum.hise.audio/topic/3630/laf-scriptslider?_=1659995280719 -
@Natan That's really great thanks!
I have had a look at some of the code below and am not sure how to add a few bits.
- Can I remove the decimal point so it just says L100 not L100.0
- How can I have 4 identical panners using local look and feel?
- How can I add a lane for the moving arc to slide in.
If you have any ideas on how to implement those I would be really grateful.
HiseSnippet 1440.3ocuW0saaaCEVJIpawaoXEXO.b9JmVGGYul1NjkM6jXWXzjT25ztUTTzwHQYwEIRAJp13MTfg8Rrq56ReS1qvteWzcHokkTpSWQv57EFlm+3246PxywiDbORZJWXYu5wSSHV1ety3oLY3dgXJyZ39fbmC5M.MByr1cZBNMk3aYau7cUpsWcEK8m+562EGgYdjBQVVOlS8HGPioxBoi5dOZTz.rO4XZbIquY2gdb1d7HdF.kkcbsRvdmhmPNBqLaIGK6qz2mJ4hwRrjjZYuxtb+oiC4ujYr+wzT5IQD0h1Vig.YDOfG4qPrRp0dgzH+Q4obpEDkQEDvxFB3KcNj5SmKufH9BsBTgGk4C6kpBukq.u1kgmaI3s.HYWBRqXfz0bF6InIxBMJ77YNCYRhH.CzdYnXr0ZojOwYONXAS1JFeJYf.VL2iF2x0sIZKW202dsZqUCH+TI5EXAJBGf1A0mMgxHs7DDHctaD+DbjIrGv4m1i4OfPhZXbcsZatIB8PtDKlhRin9DgQzv.TF.IDNEgUmePi0JahRIRjjblDgY9nXtOAkH3IDgjRRQRNpNXb80poPSBfk7jv.lQXYndmAf1RPlPSgLZPFySR4rF08E3WZvhY2p2DEjqbRSD+jed8Z+5Z0PvGU7EX1DBrGfbfjNCsg4WT11FaLeCYSJDRIXtOEyJbWK89AApLZGTmVaUwMkEXg2wgTuSYPcCLwsU66rcEs+.0WFBZZ2xE18Nv2WuhSmGHGBkRTZlfflxyPBhlLCAJD3kuxXURKuHBVnYoJ95gi7xh.RT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