OPreload

A custom HDK operator example with an option to reload changes at runtime, to retain the state of the loaded scene.

demo1 - workflow

Build:

Update the CMakeLists.txt to point to Houdini installation directory ($HFS). The make install copies the host shared library to the dso folder inside $HOME/houdini18.0.

mkdir __build
cd __build
cmake .. -DCMAKE_INSTALL_PREFIX=$HOME/houdini18.0/dso
make install

NOTES:

There is a possible way to improve state of things by at the cost of increasing code bloat of current solution. This would require to increment the internal node type (hdk_dualstar) during each built (and change each time the type during reload in Houdini session).