OpenShot Video Editor
2.0.0
Main Page
Namespaces
Classes
Files
File List
src
classes
legacy
openshot
classes
sequences.py
Go to the documentation of this file.
1
##
2
#
3
# @file
4
# @brief This file is for legacy support of OpenShot 1.x project files
5
# @author Jonathan Thomas <jonathan@openshot.org>
6
#
7
# @section LICENSE
8
#
9
# Copyright (c) 2008-2018 OpenShot Studios, LLC
10
# (http://www.openshotstudios.com). This file is part of
11
# OpenShot Video Editor (http://www.openshot.org), an open-source project
12
# dedicated to delivering high quality video editing and animation solutions
13
# to the world.
14
#
15
# OpenShot Video Editor is free software: you can redistribute it and/or modify
16
# it under the terms of the GNU General Public License as published by
17
# the Free Software Foundation, either version 3 of the License, or
18
# (at your option) any later version.
19
#
20
# OpenShot Video Editor is distributed in the hope that it will be useful,
21
# but WITHOUT ANY WARRANTY; without even the implied warranty of
22
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
# GNU General Public License for more details.
24
#
25
# You should have received a copy of the GNU General Public License
26
# along with OpenShot Library. If not, see <http://www.gnu.org/licenses/>.
27
#
28
29
30
##
31
# A sequence contains tracks and clips that make up a scene (aka sequence). Currently, Openshot
32
# only contains a single sequence, but soon it will have the ability to create many sequences.
33
class
sequence
:
34
35
# ----------------------------------------------------------------------
36
##
37
# Constructor
38
def
__init__
(self, seq_name, project):
39
40
# init variables for sequence
41
self.
name
= seq_name
42
self.
length
= 600.0
# length in seconds of sequence. This controls how wide to render the tracks.
43
self.
project
= project
# reference to current project
44
self.
scale
= 8.0
# this represents how many seconds per tick mark
45
self.
tick_pixels
= 100
# number of pixels between each tick mark
46
self.
play_head_position
= 0.0
# position of the play head in seconds
47
48
# init the tracks on the sequence
49
self.
tracks
= []
50
51
# init markers
52
self.
markers
= []
53
54
# reference to play_head goocanvas group
55
self.
play_head
=
None
56
self.
ruler_time
=
None
57
self.
play_head_line
=
None
58
self.
enable_animated_playhead
=
True
sequences.sequence.markers
markers
Definition:
sequences.py:52
sequences.sequence.ruler_time
ruler_time
Definition:
sequences.py:56
sequences.sequence.play_head_line
play_head_line
Definition:
sequences.py:57
sequences.sequence
A sequence contains tracks and clips that make up a scene (aka sequence).
Definition:
sequences.py:33
sequences.sequence.project
project
Definition:
sequences.py:43
sequences.sequence.tick_pixels
tick_pixels
Definition:
sequences.py:45
sequences.sequence.name
name
Definition:
sequences.py:41
sequences.sequence.scale
scale
Definition:
sequences.py:44
sequences.sequence.enable_animated_playhead
enable_animated_playhead
Definition:
sequences.py:58
sequences.sequence.tracks
tracks
Definition:
sequences.py:49
sequences.sequence.play_head
play_head
Definition:
sequences.py:55
sequences.sequence.play_head_position
play_head_position
Definition:
sequences.py:46
sequences.sequence.length
length
Definition:
sequences.py:42
sequences.sequence.__init__
def __init__
Constructor.
Definition:
sequences.py:38
Generated on Thu Mar 21 2019 08:17:13 for OpenShot Video Editor by
1.8.6