A switch to enable/disable sending of Z for Multiball object
Posted: 09 Jan 2012 06:57
Hi all,
I'm working on a template where I have a Multiball object acting as a simple XY pad. The XY pad controls certain effect parameters in Traktor. I like the fact that Multiball outputs Z variable which I can use to enable effects in Traktor when the XY pad is being touched, but I don't want it to work like that all the time.
I'm looking for a way to add a switch object to my template which would enable/disable the "touch sensitivity" of my XY pad. In other words, I need that switch to either temporarily disable sending of Z from the Multiball object or make it so that it sends 0 as long as the switch is off. I could of course easily create this type of functionality via a modifier inside of my mapping in Traktor, but it's a pretty complex mapping as it is and so I don't want to overcomplicate it with unnecessary condition checks.
I tried creating a script within the Multiball object that executes on any change to Z and includes a simple conditional statement that checks if Switches.x equals 0 (i.e. switch is off) and if yes, sets Z to 0, but I'm getting some strange results where touching the Multiball object somehow puts the switch on. Obviously, I'm doing something wrong here Any advice on how to best implement this type of switch would be highly appreciated.
Thank you.
--
Best Regards,
Alexey Popoff
I'm working on a template where I have a Multiball object acting as a simple XY pad. The XY pad controls certain effect parameters in Traktor. I like the fact that Multiball outputs Z variable which I can use to enable effects in Traktor when the XY pad is being touched, but I don't want it to work like that all the time.
I'm looking for a way to add a switch object to my template which would enable/disable the "touch sensitivity" of my XY pad. In other words, I need that switch to either temporarily disable sending of Z from the Multiball object or make it so that it sends 0 as long as the switch is off. I could of course easily create this type of functionality via a modifier inside of my mapping in Traktor, but it's a pretty complex mapping as it is and so I don't want to overcomplicate it with unnecessary condition checks.
I tried creating a script within the Multiball object that executes on any change to Z and includes a simple conditional statement that checks if Switches.x equals 0 (i.e. switch is off) and if yes, sets Z to 0, but I'm getting some strange results where touching the Multiball object somehow puts the switch on. Obviously, I'm doing something wrong here Any advice on how to best implement this type of switch would be highly appreciated.
Thank you.
--
Best Regards,
Alexey Popoff