Passing data to a script widget from custom module and resend it

Hi,

I am sending two arguments tot Open Stage Control from an external osc address (with Qlab). This data is filtered in a custom module and then passed to a script widget. Here some more arguments/data is added.

Now I would like to send all the data from the script widget back to to custom module where a function will store all data in an external database (for logging purposes).

In open stage I can see that data is received by the script widget and the OnValue is triggered. But it doesn't send it out to the custom module. I've read that the event that triggered the script's execution was not initiated by a user interaction, this function will have no effect.

Is there a way to achieve this?

Code in the script widget:


// get Id
const theResId = get('resid-detail');

// send the log message to the the database
// this is a function in the custom module
send('/logData',value[0],value[1],theResId)


Widgets can't send back messages in response to incoming messages (send() has no effect unless triggered by a user interaction), this must be done from the custom module directly.