[Sidefx-houdini-list] python expressions... how we doing?
ld at dneg.com
Fri Jan 25 06:18:32 EST 2008
I remember plugging around a hundred blend inputs into a facial rig last
year and then realising that I wanted to rename the parameter names in
the asset. Ouch.
Is that really easy in python now?
Also, is the expression syntax in dops going to be improved with python?
I can't see it but maybe I'm wrong?
Andrew D Lyons wrote:
> 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.
>> Darran Edmundson [darran at edmstudio.com]
>> Sidefx-houdini-list mailing list
>> Sidefx-houdini-list at sidefx.com
More information about the Sidefx-houdini-list