OpenShot Video Editor
2.0.0
Main Page
Namespaces
Classes
Files
File List
File Members
src
classes
legacy
openshot
classes
track.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-2016 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
import
uuid
30
31
32
##
33
# The track class contains a simple grouping of clips on the same layer (aka track).
34
class
track
:
35
36
# ----------------------------------------------------------------------
37
##
38
# Constructor
39
def
__init__
(self, track_name, parent_sequence):
40
41
# init variables for sequence
42
self.
name
= track_name
43
self.
x
= 10
# left x coordinate to start the track
44
self.
y_top
= 0
# top y coordinate of this track
45
self.
y_bottom
= 0
# bottom y coordinate of this track
46
self.
parent
= parent_sequence
# reference to parent sequence object
47
self.
play_video
=
True
48
self.
play_audio
=
True
49
self.
unique_id
= str(uuid.uuid1())
50
51
# init the tracks on the sequence
52
self.
clips
= []
53
54
# init transitions
55
self.
transitions
= []
track.track.x
x
Definition:
track.py:43
track.track
The track class contains a simple grouping of clips on the same layer (aka track).
Definition:
track.py:34
track.track.y_top
y_top
Definition:
track.py:44
track.track.parent
parent
Definition:
track.py:46
track.track.name
name
Definition:
track.py:42
track.track.clips
clips
Definition:
track.py:52
track.track.__init__
def __init__(self, track_name, parent_sequence)
Constructor.
Definition:
track.py:39
track.track.transitions
transitions
Definition:
track.py:55
track.track.play_video
play_video
Definition:
track.py:47
track.track.unique_id
unique_id
Definition:
track.py:49
track.track.y_bottom
y_bottom
Definition:
track.py:45
track.track.play_audio
play_audio
Definition:
track.py:48
Generated on Tue Aug 30 2016 06:50:46 for OpenShot Video Editor by
1.8.11