Module vrVideoGrab :: Class vrVideoGrab
[frames] | no frames]

Class vrVideoGrab

   object --+        
            |        
  ??.instance --+    
                |    
vrAEBase.vrAEBase --+
                    |
                   vrVideoGrab

Maps a video stream from a tv card or webcam on a node.

Example:

       See also example videograb.py
Instance Methods
 
__init__(node, parameter, xres, yres, material, parameter, material, parameter, xres, yres)
The constructor of the vrVideoGrab class.
 
setFrame(x0, y0, x1, y1)
Sets the frame rectangle of the displayed movie.
 
setTransform(x, y, xscale, yscale)
Transforms the video.
 
setUpdateDuration(duration)
Sets the movie update duration.

Inherited from vrAEBase.vrAEBase: __reduce__, addLoop, callAllConnected, connect, connectSignal, emitSignal, getModuleName, isActive, loop, recEvent, removeConnections, setActive, setUpdateGUIEnabled, subLoop

Inherited from unreachable.instance: __new__

Class Variables
  __instance_size__ = 216
Method Details

__init__(node, parameter, xres, yres, material, parameter, material, parameter, xres, yres)
(Constructor)

 

The constructor of the vrVideoGrab class. There are two valid sets of parameters:

vrVideoGrab(node, parameter)

vrVideoGrab(node, parameter, xres, yres)

Parameters:
  • node (vrNodePtr) - The node to map the video to.
  • parameter (string) - The device name or device index number.
  • xres (integer) - The x resolution of the video (Optional). Default is the given video resolution.
  • yres (integer

    The constructor of the vrVideoGrab class. There are two valid sets of parameters:

    ) - The y resolution of the video (Optional). Default is the given video resolution.
  • material - The material to map the video to.
  • parameter (string) - The device name or device index number.
  • material - The material to map the video to.
  • parameter (string) - The device name or device index number.
  • xres (integer) - The x resolution of the video (Optional). Default is the given video resolution.
  • yres (integer

    The constructor of the vrVideoGrab class. There are two valid sets of parameters:

    ) - The y resolution of the video (Optional). Default is the given video resolution.
Overrides: vrAEBase.vrAEBase.__init__

setFrame(x0, y0, x1, y1)

 

Sets the frame rectangle of the displayed movie.

Parameters:
  • x0 (integer) - The x0 position.
  • y0 (integer) - The y0 position.
  • x1 (integer) - The x1 position.
  • y1 (integer) - The y1 position.

setTransform(x, y, xscale, yscale)

 

Transforms the video.

Parameters:
  • x (float) - The x position.
  • y (float) - The y position.
  • xscale (float) - The x scale.
  • yscale (float) - The y scale.

setUpdateDuration(duration)

 

Sets the movie update duration.

Parameters:
  • duration (float (64bit)) - The duration in seconds.