Chen Zeng

zengchen

About Me

EXPERTISE
Gamedev
INDUSTRY
Gamedev

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Python Script Book June 24, 2021, 5:56 a.m.

it is just a cn translation of official document.

you can find the origin at Python scripting [www.sidefx.com]

Houdini's python document is really comprehensive so the translation has 1000+ page.

How to I read a key-value dictionary from an expression? Nov. 7, 2020, 9:30 p.m.

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.

How to I read a key-value dictionary from an expression? Nov. 7, 2020, 6:45 a.m.

I have a method to read dict parm but must use Houdini 18.5's dict attribute and json function.

dict attr help [www.sidefx.com]

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.

JSON loads vex function [www.sidefx.com]