accessing $HFS using Python?

   6034   3   0
User Avatar
Member
194 posts
Joined:
オフライン
is there are a method that returns the value of $HFS?

the only way i can think of right now is calling hou.houdiniPath() and then examining the tuple it returns, but that's kind of clumsy.
User Avatar
スタッフ
2676 posts
Joined: 7月 2005
オフライン
whalerider
is there are a method that returns the value of $HFS?

the only way i can think of right now is calling hou.houdiniPath() and then examining the tuple it returns, but that's kind of clumsy.

import os
print os.environ

Does that work?
User Avatar
Member
1926 posts
Joined: 11月 2006
オフライン
Either of the following also work.
hou.hscriptExpression(“$HFS”)
hou.expandString(“$HFS”)
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
194 posts
Joined:
オフライン
all 3 methods worked for me.

thanks a lot, guys.
  • Quick Links