we might have foreground3 too

This commit is contained in:
j 2023-10-20 16:20:16 +01:00
parent 73a9481ef1
commit 72ab1b1d13

View file

@ -95,7 +95,15 @@ def compose(clips, target=150, base=1024, voice_over=None):
else: else:
foley = fg foley = fg
if 'foreground2' in clip: if 'foreground2' in clip:
if chance(seq, 0.5): if 'foreground3' in clip:
n = seq()
if n <= 3: # 0,1,2,3
clip['foreground']
elif n <= 6: # 4,5,6
clip['foreground2']
else: # 7,8,9
clip['foreground3']
elif chance(seq, 0.5):
fg = clip['foreground2'] fg = clip['foreground2']
scene['front']['V1'].append({ scene['front']['V1'].append({