psonice

psonice

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Bug with time.sleep() in python/H9 2007年9月29日11:23

Looks like there's a nasty bug with houdini and the time module in python. Opening the python shell in houdini and running:

import time
time.sleep(1)

works fine, but after that houdini becomes extremely unstable and crashes. This happens every time, but not in exactly the same way - it's usually when I 'm typing a new line of code in, and could be related to the tool tips or auto-completion. Try typing a few lines after that.

When it crashes, the application hangs (totally unresponsive to input) so no crash log is left.

This is on houdini 9.0.725, running on windows xp (sp2, with all of the updates), with a quadro fx 1000 card with latest drivers. It happens with houdini freshly loaded and empty.

Custom parms in python 2007年9月28日10:24

I'm doing a bit of a project, effectively using python to script houdini to do some nasty tricks, and have hit a bit of a brick wall. Perhaps somebody can help - I'm new to both python and houdini unfortunately so I suspect this is pretty easy if you know the way of it.

So, I create a geometry node

myNode=hou.node('/obj').createNode('geo')

I can do various things with that, but what I really need to do is effectively store a few variables in the node, so I can track and modify a few aspects of the object. I understand that I need to create a parm to do this, and I can create, but then I can't set the value as it has type ‘none’. I can't figure out how to set the type, or initialise the parm with a useful type.

Can anyone point me in the right direction?

Thanks in advance!