Sending OSC messages from SC to Blender

Hi all

I am trying to send OSC messages from SuperCollider to Blender.
In Blender I am using the AddRoutes plugin (AddRoutes | JPfeP)
I could send OSC to Blender with open-stage-control.

Blender listens for OSC messages on:

That’s my code:

SynthDef(\modulator, {\,\, 0.5)).range(-10, 10));

~bus = Bus.control(s,1);
~modulatorSynth = Synth(\modulator, [out: ~bus]);

~proc = NetAddr("", 9001);

OSCdef(\blender, {
	~proc.sendMsg("/mod", ~bus.getSynchronous.asFloat);
}, "/blender/01");

Thanks for your help!

I’m no expert but maybe this:

should be:
~proc = NetAddr("", 9001); is usually used to send to another app on the same device


Hello Paul

Actually by default in Blender the Address is:
But it’s no change with

OSCdef listens for OSC messages. You want to send the values from the server to the language, and then from the language to blender, e.g as follows:

s.waitForBoot {

	b ="", 9001); // create the NetAddr to send to blender

	SynthDef(\modulator, {
		// generate a signal
		var sig =\, 0.5)).range(-10, 10);
		// send signal from server to language 10 times per second, '/modval', sig.poll(label:"server value"));


	Synth(\modulator); // start the synth

	OSCdef(\receive_mod, {
		| msg, time, addr, recvPort |
		b.sendMsg("/blender/01", msg[3]); // send value to blender
	}, '/modval');

1 Like

Great! Thanks a lot!

There’s software based on Blender & openframeworks which converts 3D shapes into oscilloscope (lissajous x/y) based audio/visual format.

It may be of interest,


1 Like

It’s nowhere near the same level of performance with Blender, but if anyone finds it’s interesting, there’s also free x/y patches for Max, Pd, & M4L