Can't seem to find any function for this in either hou.Node, hou.NodeType, hou.HDADefinition or hou.HDASection
Even the good old opstat hscript command doesn't help out..
I can kind of see what I need in the Contents.dir/Contents.houdini_versions file on disk inside the unpacked HDA.
But I'm hoping I don't need to parse the file on disk.
When I try to get to the Contents HDA Section it appears to be gzipped according to the hou module.
So when doing:
contents = node.type().definition().sections()['Contents.gz'] contents.contents()
Then I figured out you can set the Contents to be uncompressed (in TypeProperties/Save/CompressionType)and save the HDA to disk again. Apparently this is not influencing what's on disk but how the HDA is stored in memory.
When I then get the contents it seems to be the all the Contents files combined in I guess CPIO format.
Anyone has some leads here?
cheers,
benS