I have very strange stuff happening with python parameter expressions [www.sidefx.com] in string parameters
Basically it seems completly random weither the expression will compute or not. Sometimes the expression will just stay as plain text (the parameter does not become blue), sometimes it does work immediatly.
I've done dozen of HDA for my company, but I still can't find a way to make this work everytime. This is always the one thing that takes me the most time.
Is there a specific thing to do with the interface when adding the python expression? I usually clic in the parameter, alt+e, type my expression then clic "apply" in the houdini edit string window. It does not work.
Doing a right clic on the parameter > Expression > Toggle Expression does not work either.
See exemples of problems in the screenshot:
1/
- string_b should compute and return "exemple text" from string_a
- string_c does compute and return "exemple text" from string_a, but is using `chs()` rather than hou.evalParm()
- string_d does not compute and return "EXEMPLE TEXT"
2/ string_toggle_a should compute and return "toggle is 0"
2/ string_toggle_b should compute and return "toggle is 0"
Can anyone help me on this ?


