@@ -85,16 +85,16 @@ def __init__(self, file=None, clip=None):
85
85
86
86
self .clip .Open ()
87
87
88
- # Set region clip start and end
88
+ # Set region clip start and end
89
89
self .clip .Start (clip .Start ())
90
90
self .clip .End (clip .End ())
91
91
self .clip .Id ( get_app ().project .generate_id () )
92
92
93
93
print ("IDS {} {}" .format (clip .Id (), self .clip .Id ()))
94
94
95
95
# Keep track of file object
96
- # self.file = file
97
- # self.file_path = file.absolute_path()
96
+ self .file = file
97
+ self .file_path = file .absolute_path ()
98
98
99
99
c_info = clip .Reader ().info
100
100
self .fps = c_info .fps .ToInt () #float(self.fps_num) / float(self.fps_den)
@@ -110,7 +110,7 @@ def __init__(self, file=None, clip=None):
110
110
# Apply effects to region frames
111
111
for effect in clip .Effects ():
112
112
self .clip .AddEffect (effect )
113
-
113
+
114
114
# Open video file with Reader
115
115
log .info (self .clip .Reader ())
116
116
@@ -129,7 +129,7 @@ def __init__(self, file=None, clip=None):
129
129
130
130
try :
131
131
# Add clip for current preview file
132
- # self.clip = openshot.Clip(self.file_path)
132
+ self .clip = openshot .Clip (self .file_path )
133
133
134
134
# Show waveform for audio files
135
135
if not self .clip .Reader ().info .has_video and self .clip .Reader ().info .has_audio :
0 commit comments