I tried this kind of thing at one point (dumping the viewer to an image file).
What I ended up doing is trolling all of the QGLWidget instances in the app and
dumping their contents to image files via PyQt. That works, but since only the
visible pixels are buffered to the screen, you get a chopped view if your image
is semi-occluded by the edge of the pane. Also, the QGLWidget accounts for the
entirety of the pane’s content, so you get the black borders around the
viewable window as well.
The other tricky thing is that the order of the QGLWidgets in the app changes
based on your window layout, so if you manage to snap the one holding the
viewer window, and then change the order of the widgets at all, your 'pointer'
variable to that widget is no longer valid (crash).
That’s really the closest I’ve come to being able to save viewer content on
demand, but there’s definitely a chance I’m overlooking something brutally
obvious.
-Nathan
From: Gary Jaeger
Sent: Thursday, October 20, 2011 8:55 AM
To: Nuke user discussion
Subject: [Nuke-users] render the GL view
Is there a way to render out the GL view? I want to use the GL view of the
PointCloudGenerator. Any tips? I nukepedia'd and googled but didn't come up
with anything.
--
Gary Jaeger // Core Studio
249 Princeton Avenue
Half Moon Bay, CA 94019
650 728 7060
http://corestudio.com
--------------------------------------------------------------------------------
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users