Activate and Deactivate FX based on Combo Box
-
I'm creating some multi effect chains in the scriptnode editor. I'd like to be able to activate each by selecting it in a combo box. I'm still very new to scripting, so I'm having a hard time figuring out how to start on this.
Grateful for any help!
-
@pgaudioworks said in Activate and Deactivate FX based on Combo Box:
I'm creating some multi effect chains in the scriptnode editor. I'd like to be able to activate each by selecting it in a combo box. I'm still very new to scripting, so I'm having a hard time figuring out how to start on this.
Grateful for any help!
show us how far you've got..
-
I've added script variable and callback definitions for the combo box:
//MFXDropDown const var MFXDropDown = Content.getComponent("MFXDropDown"); inline function onMFXDropDownControl(component, value) { //Add your custom logic here... }; Content.getComponent("MFXDropDown").setControlCallback(onMFXDropDownControl);
And added some placeholder menu items.
I know I need callbacks for my scriptFX but I'm not sure how to add those. I'm almost totally green on scripting.
-
do you have your scriptnode effects completed?
Have you compiled them into HardcodedmasterFX?
Do you have some sort of bypass control in your scriptNode for each effect?so this sort of thing:
HiseSnippet 1785.3oc6Y07aaTDEeV6LIMI8aZU4nOvgToRTbnzVINXmubaTqSrxFRKmBS1cr8prdlU6NNIFDRHwE3.BDWP8BhaHtf3J25INWA+CT9OnbGI3Mytq2Ys2j335TfBNRQddu2L6u22y9bMetEMHf6iLlbyNdTjwYwlcXhlK0j3vPqtLx373pj.A0uPHoE63QBBn1HCi72URvXxwPpOOuzhDWByhlPBg1h6XQefSKGQB0ZkuuiqaEhMcSmVZReyxqZwYKwc4sA7jGOGxiXsKoAcMhTrbXjw3qX6H39lBhfFfLFaQtcGyl78YgxukSfyNtT4hhHS3fBIWg6ZKQr76nkZ53ZWKVuCPHCbsDqP9PqvUvUcrc5ROwZbQEiBI6P2dXjKM7xmBdEOL3kAjLzfzXgP5RXSKeGOQBGIdlFuJCbN0IfYWGJgxhLdBdINH.SLaKxtzJ9vhtaXlaM2b2n.7uq+N0ayrDNbVANaMtftNalqO0GN0jS8QSUnWV0qmIO4iwm65R8yjszS6eTabFV6V6P8uQg8HtsocEDT+z1zwGLapUnVqIHmsJyQrtGMZc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oSB0LCSiq6bv11pKFzWmXnFTB2QicH2I1NLDE.T2yQONPJvW4V+GNn7KX0HzWVtemxyKcjNk34QzyI8wkQoZCD.W4KsK37ciEU7FVGPFY9ZWkHFUcSGNzJTwW03+aU8ewVUC1hTduwC6cnJeD0VXzW4qusNX2aNcKsT2ddJb2.YTuZyzgZiJedzGSns067MOtie4ASWzqgmRSzqD1mpbgPlc6YbJ5Zd928y2+1e1uMftljRQ83V5BUzhb9tsHpWL+EdLZWMj4z3GR1iplQs5clupZccteqB2kB2tQNvphGwTpe5fNkZuAdJ0qaI.HroOgE3wCnE0O4d3MuNukoh1rzhGRJkTR0qBndZxclxwDmWmXMBK0gAqScRUkShId4yJsBiriK0jBZi85AVfxR5IvnVa2.5CcrEMKpuwDxyqS9dDeavuXkZ5e4GpQtkdnnZxmw72F+zZ58uTmr5K9ffyOXv8Xlf4jwXzTMIpUX6QcgzTEFuLjWVmz1UDSMcdVUNiGOCsjHfMnBemFMnouwUVJzBBgrnQWJWo7FTWJIPK26MJ+.3MXH9po9Lb1hS9O7Rl9qWGGB2BxhCEd0X.94eEZ.9mFYnP8y+83ouFFpoOeAk6tve+96WF+d.uLdFsHV97siF9srfwYTT.8lo9QpmDWUttPQzdwCkV9q.zBZ6rskkLl9MA6S16Y9gXOu0PrmaND64sGh8bqgXO2dH1ycNx8H63G8Bix3efPsUT2D0vH7FPpTAzegMAZpx
-
@Lindon I've got some test effects finished and added a bypass for each. I haven't compiled them yet, not sure how to do that. Here's what I have now:
-
@pgaudioworks I think it would be simpler if you use a switch bypass node. That way you can switch between nodes with just one parameter. Easier to code the combo box that way.
-
@pgaudioworks try this.
HiseSnippet 1469.3oc6X00aaaCEkxNzMQqqqEH.6wIzmbA5LrS65FvvP9vIYyXMoFUYA8s.ZI5XBKIJHQ2Dug99ddus+c6mP+GzcujxxR9iDWi17TS.RDIuj2Cu2y8PJ0MQ5wSSkIDqsNabLmXcep63H0f1CXhHRmCIVOfdBKUwSbLccv3XVZJ2mXYU8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9j66XhN.7B0Zavscv7RWVBb4G3raTRrhU0BRjFlI1BpGqX3gcROGG0iEPN2n2BaLzKlHmAsnoaSSk8U8zX4hzqvh9mStksw73Y02KlwQTjEynHJroFWySJ66Gp8Mviabce3ZhIKMnsUs+Uc4Gl2YkBSUlIL8MHYsvFIKRYNNfLiw0PYR9Da1j5pALvT0++LVBbOCzIUK1Q1YZQbcYYZ4lYgfNvlgRS60hjCErKaZ9dkrtK4Ne5Wxms7krPjDojSZAkImHhNu7o9DxIrqmou2uqqhGi5dEsycH+JCmnnkXF4dTyBL2Ru+HkLDz0zrDRAZ1CfMvE4r4ailuX9UQF3Mv0VoRxp4kjUKfRCYnD391BfCqWuvTv9QCwYT.nlvn+nvvwkcnMEBfCZDNJXFen0iuIeToXXX4bhZ2obh2uK4FUBVhf4b5EtgRoZ.bbm9EVy0K1lLyVkLS5bm6tz4llzYqujO+LlOe1cd9bmujO+TlOWZi0IHP1a9f.DXVZPH+xCEOnpxpcFbgaJU5f3IAVx5bwvkG.JA2O9ng9sGVXbXtEZ019K75pkBDSuY1AR4vPl9kEVqOwvcxq1Dx7RjWjcKWbeuotGHzEo+XmaQOAa6L22MgPBE9hK77JuTyMwcV2I9r0chOecm3OrtS7Eq6D+w0ch+zsOQ7aEmUfibXnTo6QZRnk0QQL3kqMWO8+A3EZpsI
-
@CyberGen This is what I needed to see. It all makes sense now. I think I may be able to work it out from here. Thank you!!!