Ah sorry, completly missed that first paragraph! ;)

On 15.01.2014, at 23:50, Sebastian Elsner <[email protected]> wrote:

> Am 16.01.2014 00:42, schrieb Patrick Heinen:
>> Hey Sebi,
>> 
>> hmm I guess I'll go that route then, thanks! Still curious if adding for 
>> example a keyer knob to a pyside panel is possible?
> 
> No, this is what I tried to tell you.
> 
> 
>> Also thanks for the heads up on safely removing widgets in Qt.
>> Hope everything is good over in Berlin :)
>> cheers,
>> 
>> Patrick
>> 
>> Sebastian Elsner wrote on 15.01.2014 01:43:
>> 
>>> On 01/15/2014 08:09 AM, Patrick Heinen wrote:
>>>> Hey everyone,
>>>> 
>>>> this might sound stupid, but I was wondering if it is possible to use the 
>>>> nuke
>>>> knob classes, that you can use on a PythonPanel on a Pyside panel and if 
>>>> so,
>>>> how?
>>> This is not possible. Nuke would have to wrap the knobs with shiboken
>>> (which provides the "glue" between c++ Qt and pyside) for pyside to
>>> understand what this object is you are adding to a dialog/layout.
>>>> I have a panel that changes the knob type depending on a dropdown menu, and
>>>> basically removes the old knob and adds a new knob back on. This works but 
>>>> I
>>>> always have to remove and readd all the knobs further down in my layout. In
>>>> addition the bug 37959(at least it seems to be that one) is causing 
>>>> problems
>>>> on linux, where my controlls get added multiple times. So my idea was to
>>>> migrate the whole thing over to a pyside panel. But I want those native 
>>>> nuke
>>>> knobs, and can't figure out how to add them as widgets to my pyside panel.
>>> To avoid the linux bug: do not remove the knobs, when showing the panel
>>> setup all knobs and then hide them according to what is selected in the
>>> dropdown. From the Qt side of things removing widgets is not as easy as
>>> adding: you have to make sure there a no references to it, set the
>>> parent widget to None, remove it from the layout and delete it (or wait
>>> for the garbage collector). At some point the underlaying c++ code in
>>> Nuke must be getting some of it wrong.
>>> 
>>>> Thanks,
>>>> Patrick_______________________________________________
>>>> Nuke-python mailing list
>>>> [email protected], http://forums.thefoundry.co.uk/
>>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>> 
>>> -- 
>>> check out www.pointcloud9.com
>>> 
>>> Sebastian Elsner - Pipeline Technical Director - RISE
>>> 
>>> t: +49 30 20180300 [email protected]
>>> f: +49 30 61651074 www.risefx.com
>>> 
>>> RISE FX GmbH
>>> Schlesische Strasse 28, Aufgang B, 10997 Berlin
>>> c/o action concept, An der Hasenkaule 1-7, 50354 Hürth
>>> Geschaeftsfuehrer: Sven Pannicke, Robert Pinnow
>>> Handelsregister Berlin HRB 106667 B
>>> 
>>> _______________________________________________
>>> Nuke-python mailing list
>>> [email protected], http://forums.thefoundry.co.uk/
>>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
>>> 
>> _______________________________________________
>> Nuke-python mailing list
>> [email protected], http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
> 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

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

Reply via email to