[Sidefx-houdini-list] H11 python hou.session scripting problem : global name 'hou' is not defined
Andrew D Lyons
tstexture at gmail.com
Wed Sep 1 12:31:09 EDT 2010
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
=======================================
More information about the Sidefx-houdini-list
mailing list