OSC PositionX Pixel Control ?

Post your questions here and we'll all try to help.
Post Reply
movebandit
Posts: 199
Joined: Wed Sep 20, 2006 20:49
Location: Germany,Bielefeld

OSC PositionX Pixel Control ?

Post by movebandit »

Urgent help needed: how does the osc parameter for /layer1/video/positionx/values (Float 0.0 - 1.0) range (-16384.0 - 16384.0) has to look like ????
Need to have absolute Pixel position and no float. (resolution too low)
Tried to send:
/layer1/video/positionx/values ,f -336.0 to 3283.0
and
/layer1/video/positionx/range ,f -336.0 to 3283.0
Osc connection is working but no reaction of resolume...sending as integer is difficult...

User avatar
Oaktown
Resolume honorary member
Posts: 2837
Joined: Tue May 08, 2012 15:19
Location: Oakland, CA

Re: OSC PositionX Pixel Control ?

Post by Oaktown »

It requires a float 0.0 - 1.0, so you just need to normalize your value.

So, for instance, if your value is -383 and the range is from X=-16384 to x=16384 then the normalized value would be (16384-383)/16384*2=0.4883117676. This also means that f=0.5 would be the center of the range and X=0 and anything from f=0 to f<0.5 would be left of center and f>0.5 to 1 would be right of center.

Then you would send the following command: /layer1/video/positionx/values 0.4883117676

Does that make sense?

Zoltán
Team Resolume
Posts: 7603
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: OSC PositionX Pixel Control ?

Post by Zoltán »

With Resolume 6 you can send absolute values via OSC too.
For this you need to set the OSC message first argument to "a" for absolute, then the second argument should be the value you want to set to.
Currently this is a bit buggy: it works fine for positive values, but not for negative. We have a ticket for this.
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

Post Reply