Generic OSC Panel
The add-on adds the "Generic OSC Panel" to TextEditor sidebar.
During the startup (and while the underlying modal operator is not running) you get a chance to add
paths to the listener.
set the local IP and port to listen on.
circleif you want to listen to
circle/damn/rockif you want to listen to
/circle/damn/rock(untested.. but should work)
you can add any number of paths, notice that the first
/ is added by the operator automatically, just less typing..and it would always start with a slash anyway.
press the little plus
notice how it now says 'listening on /circle', this doesn't mean it is currently listening, but it will be listening on that path in the future.
Add a function to call when a Path receives a new value
When you add something like
circle you should add a
do_circle. Then the modal operator will execute whatever is inside
Path function file explained.
an example of what you might write in
bpy.data.objects['Cube'].location.z = value
in this case
value is supplied as a local variable (magic!) and you can assign its value to anything in bpy.
ps. I haven't tried to do complicated stuff with that as I don't have a multi output OSC controller attached, but I've tested with Supercollider sending rapid OSC signals and it seems to work.
Then press start.
And the modal operator shall try to update as often as possible.