[Sidefx-houdini-list] python expressions... how we doing?

Andrew D Lyons tstexture at gmail.com
Thu Jan 24 19:00:57 EST 2008

My guess is we'd have to use the expression editor for longer python
code ("alt-e" over a parm). I'm guessing it will still work in python
mode. I can;t vouch for speed though.

I agree - python has advantages. The big one being able to create
functions and classes to handle common cases that get loaded at 456


On 24/01/2008, Darran Edmundson <darran at edmstudio.com> wrote:
> Rangi Sutton wrote:
> > Thanks for the insight Peter. Seems like uniformly using python for
> > expressions is an ideal, but the speed hit constructing the expressions,
> > and the speed hit evaluating them will keep 'em out of our hips for a while.
> >
> > Anyone from sidefx care to comment on this issue? The manual suggests it
> > is a replacement, is it too early to swallow that pill?
> Don't know but I'd love to leverage my python skills in houdini ...
> Here's a simple expression problem.  In a ROP, I'd to do the python
> equivalent of $HIP/XXX.img$F4.tga where XXX is either win32 or linux
> (i.e., sys.platform).
> More generally, how do you handle module imports in one-line
> expressions?  In the above example, you'd need to "import sys" before
> having access to sys.platform.
> Cheers,
> Darran
> --
> Darran Edmundson [darran at edmstudio.com]
> http://www.edmstudio.com
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list

Andrew D Lyons | Digital Artist | http://www.tstex.com

More information about the Sidefx-houdini-list mailing list