Jump to content

Store Houdini environment variables between sessions


underscoreus

Recommended Posts

Hey guys,

I'm trying to use the python command hou.putenv('x', 'y') to store a variable that I want to last between sessions. Like storing the version number, project name etc etc. However, when I run the command it seems to only keep the variable in memory for one session, and if the file is closed and opened again the variable is gone.

Is there a way to store variables in the Houdini file using python or hscript?

Thanks for the read!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...