[Sidefx-houdini-list] H11 python hou.session scripting problem : global name 'hou' is not defined

Ivan DeWolf ivan at martian-labs.com
Wed Sep 1 13:01:20 EDT 2010


are you using hython or python?


Quoting "Andrew D Lyons" <tstexture at gmail.com>:

> Something similar works for me under 11.0.482. Might want to run that
> one by SESI.
>
> On 1 September 2010 09:22,  <ubik.lists at noos.fr> wrote:
>> Hi,
>>
>> I have a serious problem with python in H11 (using 11.0.478 currently).
>> I have a simple function in the hou.session module as follow :
>>
>> def viskey():
>>    obj = "window"
>>    for i in range(0, 4):
>>        myObjName = obj+str(i)
>>        myNode = hou.node("/obj/"+myObjName)
>>        myNode.parm("ty").set(i)
>>
>> this works fine in H10, but in H11 I get
>>
>>  File "hou.session", line 5, in viskey
>> NameError: global name 'hou' is not defined
>>
>>
>> Has something changed in H11 ? Examples in the docs using  
>> hou.node() don't work either.
>>
>> Thanks a lot,
>> Vincent
>>
>>
>> _______________________________________________
>> 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
> =======================================
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
>



_______________________________________________________
Perfection is achieved when nothing else can be removed
-Yvon Chouinard

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Sidefx-houdini-list mailing list