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

Class Clip



object --+
         |
        Clip
Known Subclasses:
Filter, BlankClip, Blend, ClipHolder, File, Sequence, Slice, Stack

Abstract base class for the various DV clip classes.

Instance Methods [hide private]
 
__add__(...)
 
__delitem__(x, y)
del x[y]
 
__getitem__(...)
 
__getslice__(x, i, j)
x[i:j]
 
__iter__(...)
 
__len__(x)
len(x)
 
__mul__(...)
 
__new__(T, S, ...)
Returns: a new object with type S, a subtype of T
 
__radd__(x, y)
y+x
 
__rmul__(x, y)
y*x
 
__setitem__(x, i, y)
x[i]=y
 
addKeyframe(...)
Creates a keyframe with given settings
 
append(...)
 
extend(...)
 
failIfLocked(...)
checks if this clip is 'locked' - ie, is contained in other clip objects which depend on this clip's size staying the same.
 
getParm(...)
Returns the value of keyframed parameter 'name' at frame 'frameno'
 
getParms(...)
Returns the interpolated value set at given frameno, based on interpolating the keyframes
 
render(...)
renders this clip out to a file
 
setParms(...)
Call this with a set of parameters if not using keyframes
 
transition(...)
Returns a Clip object which implements a cross fade from this clip to another clip
 
view(...)
Attempt to display the clip in the graphical clip viewer

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

Properties [hide private]
  _isPal
  keyframes
  numFrames
  sizeLocked
  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

Inherited from object: __class__

Method Details [hide private]

__getslice__(x, i, j)
(Slicling operator)

 

x[i:j]

Use of negative indices is not supported.

__new__(T, S, ...)

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

Overrides: object.__new__

addKeyframe(...)

 

Creates a keyframe with given settings

Arguments:
  • frameno - the frame at which this keyframe is to take effect. Defaults to 0.
Keywords:
  • the named parameters to be in effect at this frame. Permissible value types are:
    • int
    • bool
    • float
    • long
    • sequence (list or tuple) of permissible values
    • dict of permissible values
    sequences and dicts can nest - for example:
       {'foo': (44, [12.5, {'bar':{'baz':[33, False]}}]), 'roses':9}
    
    is quite ok.

failIfLocked(...)

 
checks if this clip is 'locked' - ie, is contained in other clip objects which depend on this clip's size staying the same. If so, throws an exception

render(...)

 

renders this clip out to a file

Arguments:
  • path - pathname to render out to
  • ffmpegOpts - a string or sequence of strings to pass as options to ffmpeg
Keywords:
  • callback - a callable object that takes a single int argument, whose value is the frame number during encoding, or -1 when encoding is completed

Property Details [hide private]

uiChildren

generates and returns a list of child nodes for the use of UIs

Override in subclasses