I have a python script that creates a node network, it starts with a python sop that is converting a json dataset to point cloud.
No to recook the python sop takes more time that im willing to spend, to reparse the same data out.
I have wired in a filecache node, just under the python sop, but for the life of me can seem to get it to cache out the data to a bgeo like i can if i did it in the interface.
the file cache filecache = geo_folder.createNode('filecache', 'point_cache') filecache.setFirstInput(python_points_sop) filecache.parm('file').set("$HIP/geo/point_cache.bgeo.sc") # set frame range to one file. filecache.parm('trange').set(0) # write out the point cache # force the python sop to cook arr_points_sop.cook(force=True) # not sure why these do not work as i expect them to. filecache.parm("execute").pressButton() # bypass the python sop, now that its cached out python_points_sop.bypass(1)
So in the above , i have wired the python sop to the file cache node.
I can force it to cook, and stop the script there and it will have cooked the node correctly. if i take the file cache node and cache out a frame, it works as i expect it to.
The moment i try to do the execution to cache out the data, i get an empty file .
What am i doing wrong….
Cheers
Kym
