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

Class vrFade

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

vrFade fades the alpha values of objects below the specified node from opaque to full transparency in the first cycle. When the second cycle is executed it will fade back to opaque. After finishing one complete cycle the fading is disabled.

Instance Methods
 
__init__(node, time)
The constructor of the vrFade class.
 
setDuration(duration)
Sets the duration of the fade action in seconds.
 
setTime(time)
Sets the current time of the fade action in seconds.

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__ = 208
Method Details

__init__(node, time)
(Constructor)

 

The constructor of the vrFade class.

Parameters:
  • node (vrNodePtr) - The scenegraph node to be faded. Everything below this object will be faded. Caution: If the materials of the objects below node are used elsewhere within the scene these objects are also faded.
  • time (float (64bit)) - The current time within the fade cycle.
Overrides: vrAEBase.vrAEBase.__init__

setDuration(duration)

 

Sets the duration of the fade action in seconds.

Parameters:
  • duration (float (64bit)) - The duration of the fade cycle.

setTime(time)

 

Sets the current time of the fade action in seconds.

Parameters:
  • time (float (64bit)) - The current time within the fade cycle.