filsus / KnobHijacker

MIT License
4 stars 0 forks source link

EventFilters.py menu.py error #1

Open SeongGyu1216 opened 2 months ago

SeongGyu1216 commented 2 months ago

image

filsus commented 2 months ago

Hello @SeongGyu1216, could u let me know ur

Thanks.

SeongGyu1216 commented 2 months ago

Nuke version 15.1v2 Window11

SeongGyu1216 commented 1 month ago

Is there a workaround for this error?

filsus commented 1 month ago

Hey! Sorry for taking my time. I have just checked on 15.1v3 and getting the same error I will investigate further.

filsus commented 1 month ago

I have just run a couple of tests and am getting very weird behaviour. After just restarting Nuke a couple of times the error disappeared on its own.

What happens is that KnobHijacker cannot find the self.dag widget which is responsible for the Node Graph in Nuke. You can handle it with a condition, but might lose the right click behaviour.

 if self.dag_parent: 
     self.dag = self.dag_parent.findChild(QtOpenGL.QGLWidget) 
     if self.dag:
         self.dag.installEventFilter(self)