in my digital asset. So far I'm storing the values in a string parameter ‘1 2 3 4’, but this is very unpractical as I need to do string-int conversion and vice versa every time I need to retrieve or update the array.
Ideally, I should be able to save the array as integer array attribute, but it's not possible with Digital Assets to modify the geometry inside them.
The almost perfect solution is node.cachedUserData(), but I need to save the array across Houdini sessions. Node.userData() instead let you save only strings (do you know why it won't let you save python objects like the cache version?)
it looks like you can store only geometry in a ‘Data’ param. Then I don't understand why there is even a ‘Geometry Data’ parm :/
A workaround would be to store in the data parm a dummy geometry with an array attrib. But it's not as flexible, because I would be limited to 1D arrays. Wouldn't be able to store dictionaries or 2d arrays, for example