I need to set some environment variables, attached to a scene.
Ex: hou.putEnv('RENDER', ‘/path/to/my/projectA/projectARenderFolder’)
I could have to update that variable several times within a houdini session:
IE:
Open scene B
hou.putEnv('RENDER', ‘/path/to/my/projectB/projectBRenderFolder’)
Open Scene C
hou.putEnv('RENDER', ‘/path/to/my/projectC/projectCRenderFolder’)
Having an outputPath (mantra), using environment variable works well within houdini session…
$RENDER/$OS/$F.exr …
However, when I save scene, reopen, or send it to farm, $RENDER is not defined anymore.
Is it possible to declare a variable, and making it ‘saved’ in current scene?
hou.putenv('RENDER', ‘/x/x/’)
thanks,
Jonathan
Hou.putenv Error
3125 2 1- jonathan.pgagne
- Member
- 33 posts
- Joined: May 2015
- Offline
- baida
- Member
- 3 posts
- Joined: Nov. 2016
- Offline
- AhmedHindy
- Member
- 134 posts
- Joined: Oct. 2020
- Offline
-
- Quick Links