Now houdini does not have expression to deal with JSON, so you need a wrangle to convert JSON to dict attr… And then use dict attr to drive another parm.
However, there are no JSON-parsing expression functions, and limited string manipulation functions, to deal with such a string in an expression.
Thank you both of you for the answers. I ended up using the pythonexprs solution but tested out the JSON one too just to learn some more :-) one (unrelated) question zengchen, is there a deeper meaning why you use a string parameter (
JacobAndersen one (unrelated) question zengchen, is there a deeper meaning why you use a string parameter
houdini expression can only recognise two type - string(chs) and float(ch). dict parm can not be interpreted as a float type, so it need to be treat as a string parameter, the result is a JSON format string, can be loads(loads is a function) as a dict attribute use vex function.