roeland wrote:From Lua you can set an animator octane.node.setAnimator
function. For instance given a scatter node and a list of strings with the file names you can do
scatterNode:setAnimator("transforms", {0}, fileList, 1/24)
Hi Roeland,
Thanks for your answer. I am still trying to get to grips with LUA and Octane scripting.
Ideally I would like this to be a scripted node graph. A Node with a Geometry input, which outputs the scattered geometry. But for that I need to find a way to load the contents of a folder, which doesn't seem possible. I can create a file input, but it doesn't let me select multiple files. So the idea was to maybe just get the first file and then get the others that are in the folder next to it, by matching the sequence. The node is then just evaluated on time change (there is always an alembic file in the scene, which enables the time slider) and sets the scatter file to the current frame (eg. frame00001.txt).
Is it at all possible to create a button like RGB image has it, where you just get a window to load all the files in? it doesnt need all the extra functionality of sorting and setting start frame and so on. Just a button to load multiple files. Or even better, please please please, just add the button on the existing scatter node!?
I would be forever grateful if someone could help me with this. I actually did the same thing a few years ago, but it was back in the beta 1.0 phase and I would have a script in vvvv write an octane file which contains the updates scatter data, render, close octane, write the next file, launch octane with new scatter data, and so on, but it makes so much more sense to just load the scatter files during batch rendering.
Thanks.
Attached is a starting point for the script for the scripted node