This is a very minimal proof of concept of how one could trigger a houdini render with variables from a web interface served by a node.js server.
POSTing a value to the node.js server calls renderScript.py with the submitted value. In the renderScript.py you can see how you can load the cliRender.hipnc file and access its nodes and values. In this case a random seed is being set and apllied to the height of some boxes. Files will be rendered to ./render_output.
It was succesfully tested on:
local dev setup:
macOS High Sierra 10.13.4
2.6 GHz Intel Core i5
16 GB 1600 MHz DDR3
Intel Iris 1536 MB
Chrome v69.0.3497.81
node v8.4.0
npm v5.8.0
Houdini Apprentice v16.0.504.20
- Houdini (free Apprentice version is sufficent)
- Python
- Node.js + NPM
#Install
> git pull
> npm install
Additionally you need to have the houdini env Variables initialized so either add them to you bash profile or run houdini_setup from the houdini resource folder.
#Run
> node app.js
- go to localhost:3000
- set a random seed and submit