There isn't a formal way of doing this right now. Nuke's whole UI is built in 
Qt, which is written in C++; there isn't really a way of going from Nuke's 
Python API types to base PySide types (or even really getting at a lot of the 
UI elements in an easy way). If you were patient enough, you could walk your 
way through the whole application and do just about anything with/to it, but I 
wouldn't wish that on anyone. You might be able to pull off what you're trying 
to do that way, but I haven't ever tried.

You could do a sort of poor impression of it by creating a bunch of Link_Knob 
instances pointing at all the knobs on your node, but it would likely have some 
quirks. It would be cool if nodes had a method to return the top-level widget 
of their control panel as a PySide QWidget though...

-Nathan



From: Richard Bobo 
Sent: Thursday, October 09, 2014 7:35 PM
To: Nuke Python discussion 
Subject: [Nuke-python] Can a Nuke node be embedded in a PythonPanel...?

Hi, 

Maybe a bit of a odd question but, has anyone embedded a nuke node control 
panel in a custom PythonPanel? I have some understanding from explanations by 
Nathan that PythonPanels are built on PySide QtWidgets. I’m assuming that 
Nuke’s control panels are Qt-based, too. So, it *seems* like it could be 
possible. But, maybe not… My other option, I guess, would be to add custom 
knobs to a nuke node control panel, since that is supported. Anyway, I was 
wondering if it’s ever been done the other way around…?

Rich

Rich Bobo
Senior VFX Compositor
Armstrong White
Email:  rich.b...@armstrong-white.com
http://armstrong-white.com/

Email:  richb...@mac.com
Mobile:  (248) 840-2665
Web:  http://richbobo.com/

“Many of the great achievements of the world were accomplished by tired and 
discouraged men who kept on working.”
- Unknown



--------------------------------------------------------------------------------
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to