Hi everyone !
I'm trying to export the density data in primitive intrinsic:voxelId out of houdini. In numpy which would be very convenient for me.
At best i was able to get 1 frame or manually get all my frames as below.
import pickle
node = hou.pwd()
geo = node.geometry()
volume = geo.prims()[0]
densityVox = volume.allVoxels()
f = hou.intFrame()
pickle.dump(densityVox, open(filepath + str(f) + ".pkl" , "wb"))
My question is pretty simple, is there a way to automatically make a list of those values with all frames(1 to 72 for exemples) and then export it. This would allow me at some point to automate different sims and export them.
Thanks in advance for any help !