PDA

View Full Version : RE: Screen Grab


nige777
04-13-2011, 07:14 AM
I found a very useful sounding screen-grabbing plug-in on the Viz 2.5 forum -

http://forum.worldviz.com/showthread.php?t=710

However if I try and use it with Viz 4 I get
Loading File: tut_ground.wrl
** Load Time: 0.16 seconds
Traceback (most recent call last):
File "C:\Program Files\WorldViz\Vizard4\python\vizact.py", line 3315, in _callGroup
val = e.call(arg)
File "C:\Program Files\WorldViz\Vizard4\python\vizact.py", line 3132, in _callStatic
return func(*args,**kwargs)
File "C:\Users\APD\Documents\Nige_PHD\Vizard_Python Development\VizardScreenCapturePlugin\testCaptureS creen.py", line 15, in captureScreen
width,height,data = vizcapture.captureScreen()
AttributeError: 'module' object has no attribute 'captureScreen'


I've placed the new VideoCapture.dll in the DLL folder but I'm still having no luck however I've noticed that there is a VizCapture.pyd file in there which wasn't in Viz 3, therefore as I can get it working with Viz 3 I am presuming it needs re-jigging for 4?? :confused:
Is that correct??

dcnieho
05-20-2011, 10:29 PM
Hi nige777,

I just came accross viz.window.startRecording() for video and viz.window.screenCapture() for capturing to image file or texture.

Another cool thing appears to be viz.VizVideoCapture and viz.VizVideoTexture classes.

Best,
Dee