Bram Stolk


About Me

Sr Software Engineer with Walt Disney Animation Studios.


Vancouver, Canada

Houdini Skills


Not Specified

Recent Forum Posts

Finding nodes with Display flag set, from within SceneHook. Feb. 22, 2024, 12:09 p.m.

First off, a request:

This forum could really use a board for HDK questions. As Technical seems to broad, and Houdini Engine API seems not to be geared towards HDK?

My actual question:

I wrote a SceneHook, and I would like to quickly find the Node with the display flag set, in the /obj network.

How can I accomplish this?

Currently, I traverse all known nodes, and check if they have the display flag set, but I would like a more event driven approach to that.

How can I make sure my SceneHook gets a signal when a display flag changes?


Current code:
    // Retrieve all nodes.
    OP_NodeList list;
    // Check all nodes.
    for (OP_NodeList::iterator it=list.begin(); it!=list.end(); ++it)
        OP_Node* n = *it;
        if (n->isNetwork())
            // This node is a network, which means we can ask for the displayed node.
            OP_Network* netw = (OP_Network*)n;
            OP_Node* dpyNode = netw->getDisplayNodePtr();

UI_EventType Feb. 8, 2024, 8:08 p.m.

I am surprised to find UI_EventType includes UI_EVENT_DBLCLK but there is no corresponding type for a single click?

Does this mean the burden of detecting clicks falls on the plugin by monitoring the button status and mouse positions?

Building and running a plugin from samples/DM/ Jan. 26, 2024, 11:55 a.m.

UPDATE: Even though they are not listed, I see that the DM sample plugins do work.

So this is probably just a shortcoming of the dsoinfo utility.