Package dvedit :: Module core :: Class Transition
[hide private]
[frames] | no frames]

Class Transition



object --+        
         |        
      Clip --+    
             |    
         Blend --+
                 |
                Transition
Known Subclasses:
transitions.wipe.WipeTransition, transitions.template.TemplateTransition, transitions.crossfade.CrossfadeTransition

Base class for transitions between clips. Override the blendFrames method to implement your own transitions.

The required signature for it is:
   cdef int blendFrames(
       self,
       Frame frame1, Frame frame2,
       Frame frameX,
       float proportion) except -1:

   Arguments:
       - frame1 - a Frame from the first clip in the transition
       - frame2 - a Frame from the second clip in the transition
       - frameX - a Frame into which to write the result of the transition
       - proportion - degree of blend - 0 fully frame1, 1 fully frame2,
         anything in between means to perform the blend to that degree


Instance Methods [hide private]
 
__init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
init(...)
Override this method in your subclasses to process constructor keyword parameters
 
updateNumFrames(...)
Determine the logical number of frames of this object

Inherited from Clip: __add__, __delitem__, __getitem__, __getslice__, __iter__, __len__, __mul__, __radd__, __rmul__, __setitem__, addKeyframe, append, extend, failIfLocked, getParm, getParms, render, setParms, transition, view

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]
  clips
  endtime
  kw
  start
  starttime
  uiChildren
generates and returns a list of child nodes for the use of UIs
  uiTitle
generates and returns a string title to use in user interfaces
  xduration

Inherited from Blend: clip1Len, clip2Len

Inherited from Clip: keyframes, numFrames, sizeLocked

Inherited from Clip (private): _isPal

Inherited from object: __class__

Method Details [hide private]

__init__(...)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: Blend.__init__

__new__(T, S, ...)

 
Returns:
a new object with type S, a subtype of T

Overrides: Blend.__new__

updateNumFrames(...)

 

Determine the logical number of frames of this object

Override in your subclass
Overrides: Blend.updateNumFrames
(inherited documentation)