accessing 'global variables' with Python

   14247   4   1
User Avatar
Member
109 posts
Joined: July 2005
Offline
How can I access the Houdini ‘Global Variables’ that are set in the ‘variables pane’ (alt+A) using python?
User Avatar
Member
4140 posts
Joined: July 2005
Offline
I don't think that's been implemented yet. Someone that knows better may chime in.

Cheers,

J.C.
John Coldrick
User Avatar
Member
1904 posts
Joined: Nov. 2006
Online
You can do something like:

hou.expandString('$HIP')
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
109 posts
Joined: July 2005
Offline
Great! That worked. Thanks.
User Avatar
Member
536 posts
Joined: July 2009
Offline
For those that the internet has brought them back to this thread SideFX did implement this at some point.

hou.getenv
http://www.sidefx.com/docs/houdini/hom/hou/getenv [www.sidefx.com]
hou.putenv()
http://www.sidefx.com/docs/houdini/hom/hou/putenv.html [www.sidefx.com]
hou.unsetenv()
http://www.sidefx.com/docs/houdini/hom/hou/unsetenv.html [www.sidefx.com]
  • Quick Links