[Sidefx-houdini-list] Setting python expression with HOM

Sandy Sutherland sandy.maillists at gmail.com
Mon Dec 12 11:39:00 EST 2016

Hi All,

Anyone how how to apply an expression using something like this -

i.parm('polysoup').setExpression(expr, hou.exprLanguage.Python)

Basically I need to have a python expression something like this -

if ch("../switch") == 0:
do something amazing
elif ch("../switch") == 1:
do another more amazing thing

But I am not sure how to do this from a line of code setting up expr =
'.....my python expression..', adding in the necessary indents etc...



More information about the Sidefx-houdini-list mailing list