Hi
I am trying to set global(carried across sessions) for some project path. I added in the variables but that did not carry to next session. I also tried houdini.env file as described in the help, but that did not help me either.
On top of these I tried to modify $JOB, but again Houdini did not kep the value for the next session.
What is the general way to deal with permanant variables?
thanks
Permanent Global Path variables?
4022 11 2- kursad
- Member
- 88 posts
- Joined: 3月 2010
- Offline
- old_school
- スタッフ
- 2540 posts
- Joined: 7月 2005
- Offline
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
- jsmack
- Member
- 8026 posts
- Joined: 9月 2011
- Online
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
jsmackTobias Steiner
This post is very very old. What is the process for setting permanent global variables in H19? It seems setting alias' still doesn't "stick" from session to session.
Export them in the shell that is used to start Houdini.
I sort of understand what you are saying. I'll be more clear and hopefully that will help in arriving at a more specific answer. So I'm writing a json file that sets basic variables like my home directory for projects. That's pretty simple enough so long as you use the predefined global variables Houdini recognizes.
I guess where I'm stuck since I've never tried it is how to create my own variable, eg "DATA" that always points to a network data drive and have that be read into the "variables" pane in the Aliases/Variables preferences for any project that gets created.
When you say, "export them in the shell", how is that done exactly? Lastly, can I do this right in my json file?
Example:
"env": [
{
"HOME": "H:/houdini_projects_home"
},
{
"DATA": "E:/Houdini_Data"
}
]
"Data" doesn't get created but "HOME" does get updated. Thank you for any clarifications. I appreciate the help.
Edit:
Just to further clarify, I am attempting to approach this using the example given in the Houdini help doc as shown below.
Create and reuse variables
{
"env" :
[
{
"BOB" : "$HOME/bob_tool"
},
{
"BOB_TEST" : "$BOB/test"
}
]
}
Edited by Tobias Steiner - 2021年10月29日 17:35:54
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
Update:
Before everyone assumes I'm a moron. I got some help from a colleague and verified that my json does in fact work. There's something wonky on my system that isn't resolving the user environment variables correctly. Working on tracking down the source of that problem.
Before everyone assumes I'm a moron. I got some help from a colleague and verified that my json does in fact work. There's something wonky on my system that isn't resolving the user environment variables correctly. Working on tracking down the source of that problem.
Edited by Tobias Steiner - 2021年10月29日 18:50:53
- jsmack
- Member
- 8026 posts
- Joined: 9月 2011
- Online
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
- jsmack
- Member
- 8026 posts
- Joined: 9月 2011
- Online
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
jsmack
Does your scene already contain a variable with that name? I believe scene variables take precedence over environment ones.
Good to know. In this case, these are brand new scenes from a fresh application launch. I think I have a suspect for the problem though. I'm working on it now. It may have something to do with the SSD drive being used for testing on my end. Going through a checklist this morning to validate. I'll post an update here later on.
Edited by Tobias Steiner - 2021年10月30日 09:45:16
- Tobias Steiner
- Member
- 101 posts
- Joined: 9月 2015
- Offline
UPDATE:
The source of the problem in this case was an SSD drive that was being referenced. For some reason everything worked fine when using a different drive entirely. I'll keep troubleshooting whatever the issues are with the SSD drive. I've posted my json content below for the benefit of anyone else wanting to know how to create portable and semi-permanent variables for your Houdini setup. This method has been validated to work fine.
The source of the problem in this case was an SSD drive that was being referenced. For some reason everything worked fine when using a different drive entirely. I'll keep troubleshooting whatever the issues are with the SSD drive. I've posted my json content below for the benefit of anyone else wanting to know how to create portable and semi-permanent variables for your Houdini setup. This method has been validated to work fine.
{
"env": [
{
"HOME": "H:/houdini_projects_home"
},
{
"DATA": "H:/tempssd/houdini_data"
},
{
"TEX": "H:/tempssd/tex"
},
{
"HOUDINI_AUTHOR": "Tobias_Steiner"
},
{
"USER": "Tobias"
}
]
}
-
- Quick Links