Hi all !
I'm trying to access to an hip file through an external python script by importing the hou module. It works ok but I have a bug when I try to access to the nodes in the file.
in my script I have :
(there is a “obj/geo” node in my foo.hip)
hou.hipFile.load(“foo.hip”)
n=hou.node(“/obj/geo”)
n.parm(“tx”).set(1)
And i've got an error because hou.node(“/obj/geo”) returns a null !
But if I do:
hou.hipFile.load(“foo.hip”)
n=hou.node(“/obj”)
children = n.children()
I have my geo node in children !
it seems that hou.node() doesn't work with anything else that /obj ??
I work with eclipse with Hython as interpreter, houdini 13.0.414.
Of course it works fine in houdini directly.
Any idea on that ?
Thanks,
G
houdini command line load hip file
2982 1 2- Cetras
- Member
- 41 posts
- Joined:
- Offline
- pelos
- Member
- 617 posts
- Joined: Aug. 2008
- Offline
since you are doing it as a test, i am assuming you are just droping a geo node and thats it.
there for, you should call it.
hou.node("/obj/geo1")
thats why when you do it as a list and return the first object is able to find it, since it not taking in consideration the node.name().
(yep, happen to me….)
there for, you should call it.
hou.node("/obj/geo1")
thats why when you do it as a list and return the first object is able to find it, since it not taking in consideration the node.name().
(yep, happen to me….)
-
- Quick Links