Page 1 of 1
OSC changes adress.
Posted: Sat Apr 02, 2011 11:11
by cosmowe
Hey there,
for example:
in my komposition I am using 10 layers with 2 vfx on each. With my OSC controller I can edit some fxparam of each layer. wonderfull so far
Now I realize that I
need 2 more layers in between this komposition....so I add 2 more layers into my komposition between layer 2 and 4

.
plus....I generate a lot of extra work in this moment

... because, now I have to re-adress every certain button or fader on my osc controller.
before I added two more layers, this was the OSC message
/layer4/video/effect1/bypassed
after I added two more layers, the OSC message of the same param changed to
/layer6/video/effect1/bypassed
It would be great if the OSC adress never changes. I can't see the reason why it does!? Just for a nice order?
Greets
cosmowe
p.s.: is it possible that u can change the visible osc adress in resolume to a copy & pasteable region?
Nice weekend
greeeetz by
cosmowe
Re: OSC changes adress.
Posted: Mon Apr 04, 2011 13:22
by Joris
Hey Cosmowe
It would be great if the OSC adress never changes. I can't see the reason why it does!? Just for a nice order?
I understand this can be confusing, and even frustrating at times. There is a reason for it however. Since Resolume has no fixed amount of layers, you cannot give them fixed addresses. Resolume can only know where layers are relative to each other, since there is no absolute position for a layer.
This way, when you create three rows of buttons for your OSC controller, they will always be tied to the bottom three layers of Resolume. When inserting a new layer, this way all you need to do is shift the controls down and add one row on top. The layout will still correspond visually, instead of for instance having your bottom layer respond to the controls in the second row.
Theoretically you could use the name of the layer as the address, but then your layout would only work for compositions with exactly those names, making sharing of layouts or implementing a template for controllers very unpractical.
I hope that explains things a bit.
Joris
Re: OSC changes adress.
Posted: Mon Apr 04, 2011 20:21
by cosmowe
Yes it does!
Thank u - shifting the layers up an down works fine for me.
Have a nice day.
Re: OSC changes adress.
Posted: Tue Apr 05, 2011 14:28
by edwin
You can also address the active layer using /activelayer instead of /layer1 or /layer2....etc
So you could create one message that selects a layer and then use the /activelayer method further adjust the layer
Re: OSC changes adress.
Posted: Tue Apr 05, 2011 18:11
by cosmowe
Oh that sounds perfect. I'll try it! thanks!
Re: OSC changes adress.
Posted: Tue Apr 05, 2011 22:32
by cosmowe
hey edwin...
seems that I didn't get it
I understand:
If I would give layer1 the name "/activelayer" or "/helloworld" in the layerproperties - the osc message sended by my controller would look like this: /helloworld/video/opacity/values ??? right?
if
{
edwin.answer == yes;
}
then
{
I did something wrong

}
endif;
greets cosmowe
Re: OSC changes adress.
Posted: Wed Apr 06, 2011 11:22
by Joris
As mentioned above in my earlier post, you *cannot* use the layer name as OSC address, since this would cause confusion. So changing the name in the layer properties and then addressing it like that will not work.
What Edwin is referring to, is that you can also address the currently active layer (the one which is highlighted in yellow in the interface). So you could make a single row of controls for a layer, and then choose which layer you want to apply these controls on.
So you would have say 5 buttons to select the layer (OSC addresses: /layer1/select, layer2/select ... /layer5/select) and then you could have a single row of controls to control the layer you just selected (/activelayer/video/opacity/values)
if(makeSense == TRUE){
bool happyFace = TRUE;
}else{
println("feel free to ask");
}
Joris
Re: OSC changes adress.
Posted: Wed Apr 06, 2011 14:58
by cosmowe
makeSense = 1;
