Hey,
maybe this is an alternate approach to what you are after..
http://developer.shotgunsoftware.com/tk-framework-qtwidgets/screen_grab.html
https://github.com/shotgunsoftware/tk-framework-qtwidgets/blob/master/python/screen_grab/screen_grab.py
just a lucky guess that you might want to have an image for a publish or
sth..
cheers
johannes
Am 26/10/16 um 15:46 PM schrieb Antony Nasce:
Damn, clutching at straws here, but the last thing I would try is
nuke.executeInMainThread (and maybe combine that with processEvents!?)
screenshot =
nuke.executeInMainThreadWithResult(QtGui.QPixmap.grabWidget, widget)
On 26 October 2016 at 14:31, Fredrik Averpil
<fredrik.aver...@gmail.com <mailto:fredrik.aver...@gmail.com>> wrote:
Hi Anthony,
|QtGui.QApplication.processEvents()|
Hm, no that didn’t do any difference, unfortunately.
// Fredrik
On Wed, Oct 26, 2016 at 3:22 PM Antony Nasce
<antonyna...@gmail.com <mailto:antonyna...@gmail.com>> wrote:
Hmm, I'm wondering if it's something to do Qt differences in
the event queue...
I don't have a Windows machine to test on but can you try
sticking in a:
QtGui.QApplication.processEvents()
before your call to grab the image and see if that has any
positive effect on Windows...
On 26 Oct 2016, at 07:44, Fredrik Averpil
<fredrik.aver...@gmail.com <mailto:fredrik.aver...@gmail.com>>
wrote:
Hi guys and thanks so much for all this precious info,
So using Ben's function I can now find the viewer(s) which is
excellent (thank you!) and using grabWindow (instead of
grabWidget) I can grab the viewer (thank you Nathan!).
But I'm noticing a bit of a discrepancy on platforms where
the viewer, when grabbed, is completely white.
For example, on both Windows and OS X I can successfully grab
the entire desktop and see what's going on in the viewer
without issues.
When I grab the window of the viewer widget, it is visible
and looks great on OS X but on Windows it's all white. I
wonder if this is an issue or this comes down to
platform-dependent behavior...
I created a gist here with the screengrabs taken on Windows
10 and on OS X for comparison:
https://gist.github.com/fredrikaverpil/9056ad6e642b814090829edffb4ffd27
<https://gist.github.com/fredrikaverpil/9056ad6e642b814090829edffb4ffd27>
I guess I'll have to talk to support to see if there's
anything I can do. If any of you have any ideas, I'm all ears.
And again, thanks so much for the input so far!
Cheers,
Fredrik
_______________________________________________ Nuke-python
mailing list Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
<http://forums.thefoundry.co.uk/>
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
_______________________________________________ Nuke-python
mailing list Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/
<http://forums.thefoundry.co.uk/>
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
_______________________________________________ Nuke-python
mailing list Nuke-python@support.thefoundry.co.uk
<mailto:Nuke-python@support.thefoundry.co.uk>,
http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/>
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python>
--
~~~~~~~~~~~~~~~~~~~ Antony Nascè, Tel: +44 (0) 7793 823444
_______________________________________________
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
____ ESET 14341 (20161026) ____
The message was checked by ESET Mail Security.
--
STUDIO RAKETE GmbH
Johannes Hezer, Compositing TD & Stereoscopic SV
Schomburgstr. 120
D - 22767 Hamburg
j.he...@studiorakete.de
Tel:+49 (0)40 - 380 375 69 - 0
Fax:+49 (0)40 - 380 375 69 - 99
------------------------------------------------------
Pflichtangaben laut Handelsgesetzbuch und GmbH-Gesetz:
STUDIO RAKETE GmbH
Schomburgstr. 120 D - 22767 Hamburg
www.studiorakete.de / i...@studiorakete.de
Geschaeftsfuehrer: Jana Bohl
Die Gesellschaft ist eingetragen im Handelregister des
Amtsgerichts Hamburg unter der Nummer HR B 95660
USt.-ID Nr.: DE 245787817
____ ESET 14341 (20161026) ____
The message was checked by ESET Mail Security.
_______________________________________________
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