node=hou.pwd()# This all works.node.setDataBlock("id","1","int")node.setDataBlock("name","chris","str")printnode.dataBlockType("id")printnode.dataBlockKeys("int")t=node.dataBlockType("id")k=node.dataBlockKeys(t)printtprintk#This fails.#print node.dataBlock("id")#This fails.printnode.dataBlock(k)
Using Houdini Indie 20.0 Windows 11 64GB Ryzen 16 core. nVidia 3050RTX 8BG RAM.
Hi, did you ever hear back about this? From some testing I think you have to pass `None` for the 3rd argument and in python 3 the value should be a `bytes` type (I think a `str` type in python 2). E.g. > n.setDataBlock('id', '1'.encode(), None) > n.dataBlock('id') b'1' > n.dataBlock('id').decode() '1'