Open Sound Control

We have written a videomixer in OpenFrameworks on the raspberry pi for an interactive installation. It currently has 2 layers controlled by OSC and works great but I need to add a third layer. THere is no problem to add the layer and have it draw but the OSC addressing doesnt work (it considers there are still only 2 layers) and I cant find where to modify the code for it to work correctly ! the code is here http://codepaste.net/pyd8k7 (with the third layer added) and comment underneath. any help would be gratefully received ! thank you !

worked it out - it was a question of using “else if” instead of “else” when adding new layers !

1 Like