I have been trying this
http://www.sidefx.com/docs/houdini10.0/hom/commandline [sidefx.com]
I have written this function in the python command line but when i call enableHouModule()
it popsup this error
>>> enableHouModule()
Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
File “<stdin>”, line 10, in enableHouModule
File “C:\Python26\lib\os.py”, line 423, in __getitem__
return self.data
KeyError: ‘$HFS’
I have set the HFS environment variable to point to c:\Program Files\Side Effects Software\Houdini 11.0.547
Please let me know how to do this
python commandline
4024 5 1- vigneshwarviswanathan
- Member
- 32 posts
- Joined: Jan. 2010
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
On Windows, try using backslashes in your path instead of forward slashes. I'm just totally guessing here. ie.
sys.path.append(os.environ + “\houdini\scripts\python”)
Note also that this has change in H11.X which should probably now read more like:
sys.path.append(os.environ + “\houdini\python2.6libs”)
sys.path.append(os.environ + “\houdini\scripts\python”)
Note also that this has change in H11.X which should probably now read more like:
sys.path.append(os.environ + “\houdini\python2.6libs”)
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
PS. On Windows, this likely won't work unless you're using the Python distribution that comes with Houdini. The regular python distribution from python.org will NOT work because it is compiled using a different compiler.
- wei750830
- Member
- 46 posts
- Joined: Jan. 2012
- Offline
- edward
- Member
- 7899 posts
- Joined: July 2005
- Offline
- wei750830
- Member
- 46 posts
- Joined: Jan. 2012
- Offline
-
- Quick Links