Matt Tucker

Tuckz

About Me

Connect

LOCATION
Not Specified
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

hython -c " NO SPACeS " July 7, 2016, 6:56 p.m.

It appears as though I cannot use spaces within the -c “cmd string” for the hython command. Python has no such limitation.

Any work around or plans to fix this? I'm forced to use this:

hython -c "sys=__import__('sys');print(sys.path)"

… instead of this:

hython -c "import sys;print sys.path"

catching python exceptions from _hou module July 7, 2016, 6:17 p.m.

What exception would be raised during a hou.hipFile.load(<hipfile>)

It's getting hung up on errors found in the Python Source Editor code.

In my particular situation, I'm instantiating a Qt widget inside of my Python Source Editor. When I open the hip file using hython, it fails with a non-zero exit because it doesn't know how to handle the gui that's spawning on load.

I'm trying to catch that Exception
try:
    hou.hipFile.load(hip_file)
except:
    print "skipping failed py src editor code"