http://www.sidefx.com/docs/houdini/network/expression_functions.html [www.sidefx.com]
In the edit aliases and variables window you can define a custom expression function. What file are these saved in / what is the best way to manage these in a pipeline?
Is there anyway to export or define these from python?
thanks
Define custom expression function
2018 2 0- zdimaria
- Member
- 390 posts
- Joined: 1月 2012
- Offline
- graham
- Member
- 1908 posts
- Joined: 11月 2006
- Offline
All the custom expression stuff is saved into a hip file. We've had issues with old/bad expressions stored in scenes causing issues in the last.
Everywhere I've ever worked has always just had one or more hscript files which define custom expressions and then have startup code that loads them via the hscript exread command.
foo.expr
string
ddEye()
{
return pythonexprs(“houdinipipeline.util.functions.ddEye()”);
}
hou.hscript(“exread /path/to/foo.expr”)
There are a few other hscript commands to do things with them but there is no Python support.
Everywhere I've ever worked has always just had one or more hscript files which define custom expressions and then have startup code that loads them via the hscript exread command.
foo.expr
string
ddEye()
{
return pythonexprs(“houdinipipeline.util.functions.ddEye()”);
}
hou.hscript(“exread /path/to/foo.expr”)
There are a few other hscript commands to do things with them but there is no Python support.
Graham Thompson, Technical Artist @ Rockstar Games
- zdimaria
- Member
- 390 posts
- Joined: 1月 2012
- Offline
-
- Quick Links