OpenStageControl and Node.js
I would like to run 'OpenStage control' from 'node.js'.
node.js is a complex script for me. Has anyone ever tried to do this?
I don't understand how to edit a script with this line of code:
ELECTRON_RUN_AS_NODE=1 open-stage-control path/to/open-stage-control/resources/app/ [options]
From my understanding, the OpenStage Control server runs with Electron, but you can launch it through nodejs only, and I think this is what you want, as I'm not sure Electron apps are compatible with nodejs for Max, if that makes sens. My best bet would be to try the instructions under "Running with node" in the link you provided, and just ignore the line you quoted.
Also, depending on what you want to achieve, there might be some simpler solution. I don't know OpenStage Control capabilities, but for example Max natively handles sending OSC to any server.
there is an OpenStage control server that works fine as a diamon. Wish I could launch this app in one go. I lack knowledge.
If you just want to launch the OpenStage Control daemon from Max and nothing else you can try accessing Terminal/Command line through Max and run the line in your first post. If so, search for "terminal" or "command line" in the forum!
I can indeed launch the daemon via a command line. But I would really like to integrate "Open Stage control" and all the parameters useful for its operation directly from the Max or M4L interface. OpenStage Control indeed works with Electron. The developer offers me to integrate this command line into Node.
"node path/to/open-stage-control/resources/app --debug --port 9000"
I don't know how to translate it for max object....