module.exports = {
oscInFilter: function(data) {
var {host, port, address, args} = data
if (address === '/fader_address') {
if (args.length === 4) {
// remove last argument and pass it to the client / widgets
receive(address, args.slice(0, 3))
return // bypass original message
}
}
return data
}
}
These are simple examples that you'll need to adapt of course (you might for instance want to use the last argument instead of simply ignoring it).
Thank you for the extremely quick response
The 1st example is working for me, 2nd remains to be tested.
Did I get you right, the "original" fader widget cannot contain the script mentioned above in the scripting tab, it has to be a separate one?