OSC changes adress.

Post your questions here and we'll all try to help.
Post Reply
User avatar
cosmowe
Posts: 1627
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

OSC changes adress.

Post 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? :roll:


Nice weekend
greeeetz by
cosmowe
Last edited by cosmowe on Sat Apr 02, 2011 13:26, edited 1 time in total.
Image Do you like outlines? Easy Outliner on Juicebar

Joris
Posts: 5186
Joined: Fri May 22, 2009 11:38

Re: OSC changes adress.

Post 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

User avatar
cosmowe
Posts: 1627
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: OSC changes adress.

Post by cosmowe »

Yes it does!

Thank u - shifting the layers up an down works fine for me.

Have a nice day.
Image Do you like outlines? Easy Outliner on Juicebar

edwin
Team Resolume
Posts: 1207
Joined: Thu Oct 07, 2004 10:40

Re: OSC changes adress.

Post 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

User avatar
cosmowe
Posts: 1627
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: OSC changes adress.

Post by cosmowe »

Oh that sounds perfect. I'll try it! thanks!
Image Do you like outlines? Easy Outliner on Juicebar

User avatar
cosmowe
Posts: 1627
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: OSC changes adress.

Post 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; :oops:



greets cosmowe
Image Do you like outlines? Easy Outliner on Juicebar

Joris
Posts: 5186
Joined: Fri May 22, 2009 11:38

Re: OSC changes adress.

Post 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

User avatar
cosmowe
Posts: 1627
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: OSC changes adress.

Post by cosmowe »

makeSense = 1; ;)
Image Do you like outlines? Easy Outliner on Juicebar

Post Reply