Petr Zloty


About Me

Technical Director


Recent Forum Posts

Auto select node when checking display flag Sept. 29, 2022, 5:49 a.m.

You can add this code to "$HOUDINI_USER_PREF_DIR/houdini19.5/scripts/"file. (Create the scripts folder and this file if it doesn't exist.)
import hou

def auto_select_on_display_flag_set(node, event_type, **kwargs):     # pylint: disable=W0613

def add_callback(kwargs):
    node = kwargs["node"]
    node.addEventCallback((hou.nodeEventType.FlagChanged,), auto_select_on_display_flag_set)

add_callback(kwargs)    # pylint: disable=E0602

This will auto-select a node with the display flag set (and auto-deselect nodes without it):

This is just quick Proof of Concept (not production tested).

Reload python plugin while developing? Jan. 11, 2022, 8:38 a.m.

For reloading python modules I use:

For both py2.7/py3.7 you can do:
from imp import reload

It's good to remove that reloading for the production version.

Houdini needs better debug logging Dec. 16, 2021, 3:29 p.m.

Hi, debugging random crashes on an unknown remote system is hard, e.g. I had to debug a crash that was present only on a certain CPU model recently.

Typically when you submitted the issue, it gets in the bug database, it just has a "cannot reproduce" status. If you find a way how to reproduce the crash it might get solved faster.

It's usually best to send crash logs, houdini info.txt (from the menu), hip file, steps to reproduce (if you have an obvious one), any additional info that might be relevant.

E.g. figuring out the steps that result in a crash helps a lot even if they cannot reproduce it on their system. Record a video of these steps and attach it to the report.
A combination of your preferences might have an effect too (e.g. what desktop is on, UI scale, etc.).

Windows could log an event for the crash, check Event Log.

If you have PDB files (symbols) installed for that build (be sure you downloaded/installed pdb for matching build) your crash log might have additional information that is useful for devs. The easiest is to install pdb files from Houdini Launcher.

You can configure Windows to produce crash dump files (e.g. [] )
These have memory state/stack trace that might help to narrow the issue.
If the Houdini hangs on the crash, you can save the dump file from Task Manager (Right-click on the process -> Create Dump File).
If you have Visual Studio installed it will try to debug the crash (and you can save the dump file, but it might be too late)