Marc-André Belzile
mabelzile
About Me
Connect
LOCATION
Not Specified
ウェブサイト
Houdini Engine
Availability
Not Specified
My Badges
SideFX Staff
Since 2月 2018
Recent Forum Posts
Python Handle - init vs onActivate concepts 2026年1月15日16:00
__init__() is the Python handle constructor and is called when the state is entered and the handle is created.
onActivate() is called by Houdini to initialize an existing handle, either when the state is first entered or when it is resumed.
When the state exits, onDeactivate() is called and the handle is deleted. The next time the state is entered, a new handle is created and onActivate() is called again.
Interrupting a state does not delete the handle, but still triggers onDeactivate().
onActivate() is called by Houdini to initialize an existing handle, either when the state is first entered or when it is resumed.
When the state exits, onDeactivate() is called and the handle is deleted. The next time the state is entered, a new handle is created and onActivate() is called again.
Interrupting a state does not delete the handle, but still triggers onDeactivate().
How to correctly pre-orient Python state xform handles? 2026年1月5日11:26
coccarolla
I hope I can get an answer because I've been experimenting for a long time without any results.
I am trying to orient a python handle based on incoming geometry normals. The way I am trying to accomplish this is by extracting the position and the normal and building transforms from them in onDrawSetup. Then I am trying to multiply these with the gadgets' xform but results are not stable. Is there a proper order or place for doing this? Or am I doing something fundamentally wrong?
Could you provide a working Python handle that demonstrates the issues you are encountering?
How to switch multiple viewer states in HDA? 2025年7月30日14:04
Take a look at this HDA. It contains multiple nodes, each using their specific state with a script for switching states. You always need to select the proper node to enter a state, unless your state is nodeless, which I don't think is the goal here.
Image Not Found