Page 1 of 1

Setting OSC/MIDI Targets in Scripts

Posted: 14 Nov 2012 00:37
by brianc
Is it possible to set an object's OSC/MIDI targets from scripts? I have an OnMIDI script that I'd like to be able to listen for messages on a configurable MIDI target.

I know I can have scripts do the message sending on whichever targets I choose, but I'd like to actually change the objects.

Re: Setting OSC/MIDI Targets in Scripts

Posted: 17 Nov 2012 07:25
by Softcore
I think the targets specified for the objects cannot be set via scripting.

You can however either set custom midi outs or scripted "ctlout" - you can set the target one these via scripts OR you can just use scripts to enable-disable (show, hide) different objects with different targets pre-defined.

Re: Setting OSC/MIDI Targets in Scripts

Posted: 17 Nov 2012 23:14
by Macciza
Hi
Unfortunately changing the Targets there is simply not possible . .

I suppose you could set up 'listeners' on every Target that would then call your function with appropriate arguments.
Thats the only way I can think of off the top of my head

Cheers
MM