rninne
1
No I don’t mean the python function print, I mean sending the current render state to your ol inkjet and getting a pretty paper piece.
Is this possible? I did a forum search, but of course searcing for print, printing is useless.
Thanks in advance,
Rob.
base.screenshot() saves the render window, display region, or whatever you like. Then you can print it the way you want.
panda3d.org/apiref.php?page=ShowBase#screenshot
rninne
3
Hmmm I was kind hoping there was a native function, but anyway. Looks like I will have to mash up using screenshot and python imaging library,
3rd method here tgolden.sc.sabren.com/python/win … print.html
Hmm that means I need to compile panda with another 3rd party module
see:
discourse.panda3d.org/viewtopic.php?t=3727
Thanks,
Rob
rninne
4
Ok got it to work.
look at this thread to see how to packpanda with PIL
discourse.panda3d.org/viewtopic.php?p=19490#19490
I used the 3rd method here (Single image: use PIL and win32ui) in conjunction with base.screenshot()
tgolden.sc.sabren.com/python/win … print.html
and it works like a charm.
Unfortunately it is only windows compliant
Robert