Bram Stolk

bram_stolk

About Me

Sr Software Engineer with Walt Disney Animation Studios.

Connect

LOCATION
Vancouver, Canada
WEBSITE

Houdini Skills

Availability

Not Specified

Recent Forum Posts

Initial values for scriptMenuStripRadio items in custom menu April 25, 2024, 4:07 p.m.

Did you ever figure this out?

I am hitting the same thing, and none of the radio buttons is selected, which should never happen of course, as by definition, a radio button always has 1 selected.

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?

Thanks.

Current code:
    // Retrieve all nodes.
    OP_NodeList list;
    OP_Node::getAllNodes(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?