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

Rangi Sutton rangi at kanuka.com.au
Wed Jan 23 03:35:32 EST 2008


Mark Story wrote:
>> ../../../`opinput("..",0)`/wheel_project/OUT
>>     
>
> (hou.Node.inputs(hou.node("/obj/geo1/merge1"))[0])
>
>   
Thanks Mark! But it doesn't work to copy/paste obviously. To get more 
precise I offer a hip file! Crossposting to the forum because this thing 
don't do file attachments and the output of opscript is seriously kooky 
in h9.1b.

The hip file:
http://www.sidefx.com/index2.php?option=com_forum&Itemid=172&page=download&id=2123

The crosspost:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=10987
------------------------------

Hey,

Continuing a thread from the mailing list, attached is an example hip 
file, with opinputs() used in an object merge sop. The request being 
that the expression be re-written in python, as an example of python 
expression usage.

Mark story translated ../../../`opinput("..",0)`/wheel_project/OUT to be 
(hou.Node.inputs(hou.node("/obj/geo1/merge1"))[0]) , however I'm after a 
working example, because debugging something you don't fully understand 
ain't fun.

The example hip file contains this expression in 
/obj/subnet1/geo1/object_merge2:

../../../`opinput("../../",0)`/OUT

If anyone can convert this working as a python expression it would be 
greatly appreciated.

Cheers,
r.

-- 
Rangi Sutton                      Kanuka Studio Pty Ltd
rangi at kanuka.com.au               http://www.kanuka.com.au/
Studio +61 (0)7 3139 1040         35 Dover St. Albion
Mobile +61 (0)4 1521 1280         QLD 4010 Australia




More information about the Sidefx-houdini-list mailing list