Juraj Posted January 19, 2017 Share Posted January 19, 2017 Hi, when creating channel defaults inside digital asset I can set it as a value or hscript expression. Is it possible to set it to python expression? A way would be to create OnCreated script which will assign expression to a channel, or use some hscript for executing python command. But I am curious if there is another - better way Juraj Quote Link to comment Share on other sites More sharing options...
Atom Posted January 19, 2017 Share Posted January 19, 2017 (edited) If you have a parameter you can use parm.setExpression() to specify an expression and expression language. http://www.sidefx.com/docs/houdini/hom/hou/Parm hou.exprLanguage.Python Edited January 19, 2017 by Atom Quote Link to comment Share on other sites More sharing options...
Juraj Posted January 19, 2017 Author Share Posted January 19, 2017 Hi, thanks, yeah, that could be used in combination with OnCreated script. At the end I used pythonexprs() hscript expression which was sufficient for my case. Quote Link to comment Share on other sites More sharing options...
anim Posted January 26, 2017 Share Posted January 26, 2017 there is a Python option for defaults if you click on tiny calculator icon you can choose among (Literal/Hscript/Python) 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.