I just upgraded from H18.0.416 to H18.0.460 and started getting errors on the event handler for “pdg.EventType.CookComplete”. The code inside the event is selecting the first workitem, like this:
myNode.setSelectedWorkItem(event.node.workItems[0].id)
…and the error message:
Error running Python callback 'Event Handler': Traceback (most recent call last): File "C:/PROGRA~1/SIDEEF~1/HOUDIN~1.460/houdini/python2.7libs\hou.py", line 63874, in setSelectedWorkItem return _hou.TopNode_setSelectedWorkItem(*args) Error: This function can only be called from the main thread
What is the recommended way to avoid this ?
Thanks.