My function return correct result even if nuke not actively. 29 дек. 2015 г. 14:48 пользователь < [email protected]> написал:
> Send Nuke-python mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nuke-python digest..." > > > Today's Topics: > > 1. Re: keep non-modal PySide panel above main app > (Frank Rueter|OHUfx) > 2. Re: keep non-modal PySide panel above main app (Erik Johansson) > 3. Re: keep non-modal PySide panel above main app > (Frank Rueter|OHUfx) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 29 Dec 2015 09:59:24 +1300 > From: Frank Rueter|OHUfx <[email protected]> > Subject: Re: [Nuke-python] keep non-modal PySide panel above main app > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="windows-1252" > > so now that I have relaxed and enjoyed Christmas, any ideas? :) > > > On 25/12/15 3:00 am, Howard Jones wrote: > > relax and enjoy Christmas? ;) > > > > Howard > > > > On 24 Dec 2015, at 12:57 am, Frank Rueter|OHUfx <[email protected] > > <mailto:[email protected]>> wrote: > > > >> Slight issue: the flag keeps the panel on top of everything system > >> wide. I'd like it to only stay on top of Nuke, but not on top of > >> other stuff (e.g.system's file browser) when Nuke is in the background. > >> Any ideas? > >> > >> On 22/12/15 11:46 am, Frank Rueter|OHUfx wrote: > >>> DOH, of course, thanks Hugo! > >>> > >>> On 22/12/15 11:31 am, Hugo Léveillé wrote: > >>>> Have you tried: > >>>> > >>>> self.setWindowFlags(Qt.WindowStaysOnTopHint) > >>>> > >>>> Sent from my iPhone > >>>> > >>>> On Dec 21, 2015, at 5:27 PM, Frank Rueter|OHUfx <[email protected]> > >>>> wrote: > >>>> > >>>>> Hi guys, > >>>>> > >>>>> does anybody know if it's possible to keep a non-modal PySide > >>>>> panel above the main Nuke window when focus is on the main app? > >>>>> > >>>>> Cheers, > >>>>> frank > >>>>> > >>>>> > >>>>> > >>>>> -- > >>>>> <ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx compositing > >>>>> <http://ohufx.com/index.php/vfx-compositing> | *workflow > >>>>> customisation and consulting > >>>>> <http://ohufx.com/index.php/vfx-customising>* * > >>>>> > >>>>> _______________________________________________ > >>>>> Nuke-python mailing list > >>>>> [email protected] > >>>>> <mailto:[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 > >>> > >>> -- > >>> <mime-attachment.png> <http://www.ohufx.com> *vfx compositing > >>> <http://ohufx.com/index.php/vfx-compositing> | *workflow > >>> customisation and consulting > >>> <http://ohufx.com/index.php/vfx-customising>* * > >>> > >>> > >>> > >>> _______________________________________________ > >>> Nuke-python mailing list > >>> [email protected],http://forums.thefoundry.co.uk/ > >>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >> > >> -- > >> <ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx compositing > >> <http://ohufx.com/index.php/vfx-compositing> | *workflow > >> customisation and consulting > >> <http://ohufx.com/index.php/vfx-customising>* * > >> > >> _______________________________________________ > >> Nuke-python mailing list > >> [email protected] > >> <mailto:[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 > > -- > ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing > <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation > and consulting <http://ohufx.com/index.php/vfx-customising>* * > > -------------- next part -------------- > Skipped content of type multipart/related > > ------------------------------ > > Message: 2 > Date: Tue, 29 Dec 2015 00:13:40 +0100 > From: Erik Johansson <[email protected]> > Subject: Re: [Nuke-python] keep non-modal PySide panel above main app > To: Nuke Python discussion <[email protected]> > Message-ID: > <CAHE2vzvdOumY1gZMo5PT1E924nrPj-X8S6= > [email protected]> > Content-Type: text/plain; charset="utf-8" > > Skipped content of type multipart/alternative-------------- next part > -------------- > A non-text attachment was scrubbed... > Name: ohufxLogo_50x50.png > Type: image/png > Size: 2666 bytes > Desc: not available > Url : > http://support.thefoundry.co.uk/cgi-bin/mailman/private/nuke-python/attachments/20151229/b4474ea1/ohufxLogo_50x50-0001.png > > ------------------------------ > > Message: 3 > Date: Tue, 29 Dec 2015 22:31:00 +1300 > From: Frank Rueter|OHUfx <[email protected]> > Subject: Re: [Nuke-python] keep non-modal PySide panel above main app > To: [email protected] > Message-ID: <[email protected]> > Content-Type: text/plain; charset="windows-1252" > > If I register it as a panel I wouldn't have the stay-on-top problem, but > that seems to lose the ability to scale the wrapping widget so it fits > the custom widget, resulting in the user always having to resize the > window. > At the moment I am just opening it as a non-modal panel via show(). > > Setting parent=QtGui.QApplication.activeWindow() crashes Nuke when the > panel's show() method is called. > Setting no parent leaves me with the original problem. > > Ideally I'd wrap it as a nuke panel via > nukescripts.registerWidgetAsPanel(create=True), then call show() on the > returned object. But as mentioned above, this creates a parent widget > that does not scale according to the widget it's wrapping. > > frank > > On 29/12/15 12:13 pm, Erik Johansson wrote: > > Are you registering it as a nuke panel or just showing a QDialog? > > > > If it's a QDialog what Hugo wrote should work if it have the correct > > parent aka nuke mainwindow. > > > > On Mon, Dec 28, 2015 at 9:59 PM, Frank Rueter|OHUfx <[email protected] > > <mailto:[email protected]>> wrote: > > > > so now that I have relaxed and enjoyed Christmas, any ideas? :) > > > > > > > > On 25/12/15 3:00 am, Howard Jones wrote: > >> relax and enjoy Christmas? ;) > >> > >> Howard > >> > >> On 24 Dec 2015, at 12:57 am, Frank Rueter|OHUfx <[email protected] > >> <mailto:[email protected]>> wrote: > >> > >>> Slight issue: the flag keeps the panel on top of everything > >>> system wide. I'd like it to only stay on top of Nuke, but not on > >>> top of other stuff (e.g.system's file browser) when Nuke is in > >>> the background. > >>> Any ideas? > >>> > >>> On 22/12/15 11:46 am, Frank Rueter|OHUfx wrote: > >>>> DOH, of course, thanks Hugo! > >>>> > >>>> On 22/12/15 11:31 am, Hugo Léveillé wrote: > >>>>> Have you tried: > >>>>> > >>>>> self.setWindowFlags(Qt.WindowStaysOnTopHint) > >>>>> > >>>>> Sent from my iPhone > >>>>> > >>>>> On Dec 21, 2015, at 5:27 PM, Frank Rueter|OHUfx > >>>>> <[email protected] <mailto:[email protected]>> wrote: > >>>>> > >>>>>> Hi guys, > >>>>>> > >>>>>> does anybody know if it's possible to keep a non-modal PySide > >>>>>> panel above the main Nuke window when focus is on the main app? > >>>>>> > >>>>>> Cheers, > >>>>>> frank > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> <ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx > >>>>>> compositing <http://ohufx.com/index.php/vfx-compositing> | > >>>>>> *workflow customisation and consulting > >>>>>> <http://ohufx.com/index.php/vfx-customising>* * > >>>>>> > >>>>>> _______________________________________________ > >>>>>> Nuke-python mailing list > >>>>>> [email protected] > >>>>>> <mailto:[email protected]>, > >>>>>> http://forums.thefoundry.co.uk/ > >>>>>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> Nuke-python mailing list > >>>>> [email protected] > >>>>> <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ > >>>>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >>>> > >>>> -- > >>>> <mime-attachment.png> <http://www.ohufx.com> *vfx compositing > >>>> <http://ohufx.com/index.php/vfx-compositing> | *workflow > >>>> customisation and consulting > >>>> <http://ohufx.com/index.php/vfx-customising>* * > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> Nuke-python mailing list > >>>> [email protected] > >>>> <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ > >>>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >>> > >>> -- > >>> <ohufxLogo_50x50.png> <http://www.ohufx.com> *vfx compositing > >>> <http://ohufx.com/index.php/vfx-compositing> | *workflow > >>> customisation and consulting > >>> <http://ohufx.com/index.php/vfx-customising>* * > >>> > >>> _______________________________________________ > >>> Nuke-python mailing list > >>> [email protected] > >>> <mailto:[email protected]>, > >>> http://forums.thefoundry.co.uk/ > >>> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > >> > >> > >> _______________________________________________ > >> Nuke-python mailing list > >> [email protected] > >> <mailto:[email protected]>, > http://forums.thefoundry.co.uk/ > >> > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > -- > > ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing > > <http://ohufx.com/index.php/vfx-compositing> | *workflow > > customisation and consulting > > <http://ohufx.com/index.php/vfx-customising>* * > > > > > > _______________________________________________ > > Nuke-python mailing list > > [email protected] > > <mailto:[email protected]>, > > http://forums.thefoundry.co.uk/ > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > > > > > > > > > -- > > > > *Erik Johansson */Pipeline TD/ > > > > *Fido *Rosenlundsgatan 40 118 53 Stockholm, Sweden www.fido.se > > <http://www.fido.se/> > > > > > > > > _______________________________________________ > > Nuke-python mailing list > > [email protected], http://forums.thefoundry.co.uk/ > > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > -- > ohufxLogo 50x50 <http://www.ohufx.com> *vfx compositing > <http://ohufx.com/index.php/vfx-compositing> | *workflow customisation > and consulting <http://ohufx.com/index.php/vfx-customising>* * > > -------------- next part -------------- > Skipped content of type multipart/related > > ------------------------------ > > _______________________________________________ > Nuke-python mailing list > [email protected], http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > End of Nuke-python Digest, Vol 95, Issue 20 > ******************************************* >
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
