how to set custom variable like $HIP

   4138   5   4
User Avatar
Member
20 posts
Joined: Feb. 2011
Offline
Hi
I wanna make my own custom variable like $HIP. I want this to be set in some kind of config file so that multiple people can access this.
User Avatar
Staff
2540 posts
Joined: July 2005
Offline
Configuring environments is dependent on the Operating System you are using.

So, what operating system are you using? Windows7-8? Linux? Mac?
There's at least one school like the old school!
User Avatar
Member
47 posts
Joined: Jan. 2014
Offline
The houdini.env file might be what you're looking for:
http://www.sidefx.com/docs/houdini14.0/basics/config_env [sidefx.com]


You could also do something weird like running a line like this in your 123.py/456.py:
hou.hscript(“set -g %s=%s” % (“VARIABLE”,“VALUE”))
User Avatar
Member
20 posts
Joined: Feb. 2011
Offline
Thanks a lot that works well for me
User Avatar
Member
1391 posts
Joined: Dec. 2010
Offline
Just open houdini.env in the myDocuments\houdini14.0\ and write this command :

JK_Test = “Hello There !”

Then you can use $JK_Test in the Houdini.

You can use same method for other OS.
https://www.youtube.com/c/sadjadrabiee [www.youtube.com]
Rabiee.Sadjad@Gmail.Com
User Avatar
Member
258 posts
Joined:
Offline
As well, for project side variables you can set them in Houdini in the aliases and variables window. Not sure if I would want $HIP being declared universally in the houdini.env file. Have not really adopted h14 yet, but I usually manage projects with $JOB.
  • Quick Links