Executing Daz Script from external application
Hello!
I'm trying to procedually generate Daz3d scenes with a Daz script. Now I would like to integrate that script into a nodeJS application.
My question is rather simple, however the answer might be more complex:
How can I start a daz3d script and pass arguments to that Daz3d script from a nodeJS application?
The way I thought of it is to use something like fork to start the script. However, the script needs to run inside Daz3d to setup, render scenes and save the rendered scenes. Is there an interface that allows such kinds of connections?
If not possible, is it possible to have Daz3d script read/write to a file? The script could read that file every couple of seconds to then execute the actions that are written down inside that file. The nodeJS application could then write the commands for the script into that file. However, that'd be a rather messy solution.
Any help is sincerely appreciated.
Paul
Comments
Daz Studio supports various command line options, including the ability to pass a file name (which can be a script as well as a content file) http://docs.daz3d.com/doku.php/public/software/dazstudio/4/referenceguide/tech_articles/command_line_options/start