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

ubik.lists at noos.fr ubik.lists at noos.fr
Wed Sep 1 13:09:26 EDT 2010


Not sure, I'm using the "Python source editor" and "python shell" in the Windows Menu.
I'm using windows xp x64.

@ Andrew : ok, will try a more recent build at home and try to have it installed where I work, thanks.

Vincent

---- Message d'origine ----
>De : "Ivan DeWolf" <ivan at martian-labs.com>
>À : sidefx-houdini-list at sidefx.com
>Objet : Re: [Sidefx-houdini-list] H11 python hou.session scripting problem : global name 'hou' is not defined
>Date : 01/09/2010 19:01:20 CEST
>
>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.
> _______________________________________________
> Sidefx-houdini-list mailing list
> Sidefx-houdini-list at sidefx.com
> https://lists.sidefx.com:443/mailman/listinfo/sidefx-houdini-list
> 





More information about the Sidefx-houdini-list mailing list