General
oscout() synthax
Started by Eric on .
Sign in or create an account to join the conversation.
hi everyone,
Could i get some help on oscout() syntax? i'd like to send osc value from a canvas - the great AB's Rotary Object. Let's say i want to send io_angle..
thanks in advance!
e.
Could i get some help on oscout() syntax? i'd like to send osc value from a canvas - the great AB's Rotary Object. Let's say i want to send io_angle..
thanks in advance!
e.
there is an oscout script in the Canvas Fader example of the Canvas Learning Package (the well named OSCout())
decl address = '/machin/truc';
oscout(0,address,io_angle);
But,since io_angle is a variable,maybe you just have to set a Custom address(the osc address where you want to send your value) in the editor.found the solution in the meantime...
but thx a lot
but thx a lot
well, you'll say i am very bad at lemur, which i am, but now i have a second problem.
I ve correctly implemented my oscout() expression/script. My receiver (max) correctly received what's expected. But, unlike classic object like 'multiball' for instance, the canvas sends osc all the time, even if the data doesn't change. That resets the data in the receiver each second. Not very convenient.
Would you know how to say only on change? in the canvas object, there's no way to specify that somewhere, only by scripting i guess which is beyond my knowledge,
thanks!
-e
I ve correctly implemented my oscout() expression/script. My receiver (max) correctly received what's expected. But, unlike classic object like 'multiball' for instance, the canvas sends osc all the time, even if the data doesn't change. That resets the data in the receiver each second. Not very convenient.
Would you know how to say only on change? in the canvas object, there's no way to specify that somewhere, only by scripting i guess which is beyond my knowledge,
thanks!
-e
you can set the refresh of your Canvas "on demand" with the editor.
Maybe in the meantime you found too...
EDIT: false info,above:when I set On Demand,nothing works anymore...
I don't know why...
Maybe in the meantime you found too...
EDIT: false info,above:when I set On Demand,nothing works anymore...
I don't know why...
hey !
yep found it in the meantime...again
i did a mistake at first, that explained what it sent osc all the time. I have created a simple expression with a dedicated script with oscout() command. It did partially the job. But, to do it properly, you have to make an overall canvas scipt. Now that's working perfectly.
Sometimes it is good indeed to try to understand deeper the examples. Thing is all this canvas object scripting language is very strange to me... each step is a pain
I just don't know it, especially details like this.
sorry .. really i do feel like a burden for this forum.
cheers!
-e
yep found it in the meantime...again
i did a mistake at first, that explained what it sent osc all the time. I have created a simple expression with a dedicated script with oscout() command. It did partially the job. But, to do it properly, you have to make an overall canvas scipt. Now that's working perfectly.
Sometimes it is good indeed to try to understand deeper the examples. Thing is all this canvas object scripting language is very strange to me... each step is a pain
sorry .. really i do feel like a burden for this forum.
cheers!
-e