def __init__(self, name, frame_function, num_frames, param_min=0, param_max=1, first_frame=0): FrameContainer.__init__(self) self._name = name self.frame_function = frame_function self._param_min = param_min self._param_max = param_max self._timeline = None # update FrameContainer values self.first_frame(first_frame) self.last_frame(first_frame + num_frames - 1)
def __init__(self): FrameContainer.__init__(self) # generic frame attributes # general settings for Frames in this Timeline self.general_frame_settings['out_dir']=sage.misc.misc.tmp_dir() self.general_frame_settings['image_format']='.png' self.general_frame_settings['frame_name']='animation-frame' self.general_frame_settings['resolution']=(544,306) # attributes of this Timeline; # each of the values in this block can be shown or set with a # corresponding non-underscore method self._segment_class = Segment self._frame_rate = 30 # frames per second self._high_quality = False # in the default configuration, this has no effect self._segments = tuple()