How to get newwork view name

   4055   8   0
User Avatar
Member
54 posts
Joined: March 2008
Offline
Hi All,

how i can find right now I am in which network like /obj or /shop with python ?

Thanks
User Avatar
Member
54 posts
Joined: March 2008
Offline
I am just starting my python life with houdini so sorry for very basic question
User Avatar
Staff
1448 posts
Joined: July 2005
Offline

>>> hou.cd(“/obj”)
>>> hou.pwd()
<hou.Node at /obj>
User Avatar
Member
201 posts
Joined: July 2005
Offline
hou.pwd()
Cheers,
Rob
Digital Supervisor | Stargate Studios Toronto
User Avatar
Member
54 posts
Joined: March 2008
Offline
Thanks for the replies

but I was looking something to list all the type like /obj , /shop , like all available network views( is that we call network view ?)
User Avatar
Member
639 posts
Joined: July 2005
Offline
You mean the root?

cd /

hou.node(“/”)
User Avatar
Member
54 posts
Joined: March 2008
Offline


>>> print hou.node('/')
/
>>>


I didnt get any data from that command

My purpose is i need to get all nodes names from /obj ans /shop like if i have 10 geo objects in /obj then i need to get all node names from /obj .
User Avatar
Member
639 posts
Joined: July 2005
Offline
print hou.node(“/”).children()

“/” is the root level.
print hou.node(“/”).type()

I am not sure what you can do at the root level these days… hardly ever seeing anyone working at root level.
User Avatar
Member
54 posts
Joined: March 2008
Offline


Thanks thats what i am looking and I am just starting with houdini so should start from root right ?
  • Quick Links