Jump to content

Accessing hou from a Regular Python Shell


ivan

Recommended Posts

I'm trying to write a python shell script that (among other things) opens a hip file, sets some vars, and launches a render.

the code snippet in this doesn't work:

http://www.sidefx.com/docs/houdini10.0/hom/commandline

I get:

[ivan@helium LST_609_022_04]$ python HOU.py

File "HOU.py", line 24

finally:

^

SyntaxError: invalid syntax

I'm no expert, but I can't find the error....

Link to comment
Share on other sites

I'm running 2.5- don't know what's with the syntax error, but, Georg pointed out 2 things that fixed my problem- one was that I had no PYTHONPATH env var set, and the other was that there is "hython" which already has the hou module- dunno how I missed that, but both work fine....

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...