MPlay doesn't inherit Houdini's Environment Variables

   148   0   0
User Avatar
Member
5 posts
Joined: 1月 2016
オフライン
Hi peoples,

I'm currently trying to create a little tool that should be accessible from within MPlay. Therefore I created a new MainMenuMPlay.xml, added a sub menu and created a script item to call my little python script. Unfortunately MPlay doesn't seem to correctly inherit the main houdini session's environment anymore.
print(hou.getenv('HIPNAME')
results in "untitled".
The only "HIP-related" env variable that seems to work is "HIP".
print(hou.getenv('HIP')
correctly prints the directory where my hipfile is located.

I'm using Houdini 21.0.440 (default python 3.11). I'm pretty sure this has worked in the past, does anybody have a clue if this is a bug or if there's some workaround for this?

Any help appreciated!

Cheers

Michael
  • Quick Links