use animation foreground layer

This commit is contained in:
j 2023-10-28 11:33:29 +02:00
parent 3a367e8c73
commit 056bc1e6ba

View file

@ -90,6 +90,9 @@ def compose(clips, target=150, base=1024, voice_over=None):
break
length += clip['duration']
if "foreground" not in clip and "animation" in clip:
fg = clip['animation']
else:
fg = clip['foreground']
if 'foley' in clip:
foley = clip['foley']
@ -123,6 +126,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
else:
transparency_back = transparency
transparency_front = 0
if "background" in clip:
scene['front']['V2'].append({
'duration': clip['duration'],
'src': clip['background'],
@ -137,6 +141,16 @@ def compose(clips, target=150, base=1024, voice_over=None):
'transparency': transparency_back
}
})
else:
scene['front']['V2'].append({
'blank': True,
'duration': clip['duration'],
})
scene['back']['V1'].append({
'blank': True,
'duration': clip['duration'],
})
scene['back']['V2'].append({
'duration': clip['duration'],
'src': clip['original'],