Non UI triggered scripts and 'send()' command


I am looking for a workaround to send OSC messages from a script triggered by an incoming OSC message.
I've read that the 'send()' command will have no effect if not triggered by a user interaction.
But maybe there's a workaround to that ?

I'm also interested in the reason of that behavior ? Avoiding OSC feedback loops ?


You have to use a custom module to do this, there's is an example for this use case in the docs.

Yes, the reason is to avoid feedback loops.

Thanks for the quick reply,

I'll do a custom module then.
Since I switch projects often, this was more convenient to have everything in the same file.

Congratulations for this so useful piece of software.