Your Name 4 éve
szülő
commit
cc40d9a195
1 módosított fájl, 15 hozzáadás és 1 törlés
  1. 15 1
      tests/openshottest.py

+ 15 - 1
tests/openshottest.py

@@ -120,7 +120,7 @@ txt1 = openshot.QtImageReader("/var/txt/title.png")
 c_txt1 = openshot.Clip(txt1)
 c_txt1.has_audio=openshot.Keyframe(0)
 c_txt1.Layer(5)
-c_txt1.Position(3.1)
+c_txt1.Position(3.5)
 c_txt1.location_x=openshot.Keyframe(0.02)
 c_txt1.location_y=openshot.Keyframe(0.88)
 
@@ -128,6 +128,20 @@ c_txt1.Start=0
 t.AddClip(c_txt1)
 
 
+bg1 = openshot.QtImageReader("/var/txt/b1.jpg")
+c_bg1 = openshot.Clip(txt1)
+c_bg1.has_audio=openshot.Keyframe(0)
+c_bg1.Layer(6)
+c_bg1.Position(3.5)
+c_bg1.location_x=openshot.Keyframe(-0.18)
+c_bg1.location_y=openshot.Keyframe(-0.08)
+c_bg1.scale_x=openshot.Keyframe(0.75)
+c_bg1.scale_y=openshot.Keyframe(0.75)
+
+c_bg1.Start=0
+t.AddClip(c_bg1)
+
+
 
 #c3 = openshot.Clip(r2)
 #c3.Layer(4)