anti-tags, scale transparancy from 0-1, disable transparancy
This commit is contained in:
parent
eea27c5f8c
commit
1608b5cb60
1 changed files with 8 additions and 5 deletions
13
render.py
13
render.py
|
@ -153,7 +153,8 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
clip['foreground3']
|
clip['foreground3']
|
||||||
elif chance(seq, 0.5):
|
elif chance(seq, 0.5):
|
||||||
fg = clip['foreground2']
|
fg = clip['foreground2']
|
||||||
transparancy = seq() / 10
|
transparancy = seq() / 9
|
||||||
|
transparancy = 1
|
||||||
if 'foley' in clip:
|
if 'foley' in clip:
|
||||||
foley = clip['foley']
|
foley = clip['foley']
|
||||||
else:
|
else:
|
||||||
|
@ -166,7 +167,8 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
transparency = seq() / 10
|
transparency = seq() / 9
|
||||||
|
transparancy = 1
|
||||||
# coin flip which site is visible (50% chance)
|
# coin flip which site is visible (50% chance)
|
||||||
if chance(seq, 0.5):
|
if chance(seq, 0.5):
|
||||||
transparency_front = transparency
|
transparency_front = transparency
|
||||||
|
@ -174,7 +176,7 @@ def compose(clips, target=150, base=1024, voice_over=None):
|
||||||
else:
|
else:
|
||||||
transparency_back = transparency
|
transparency_back = transparency
|
||||||
transparency_front = 0
|
transparency_front = 0
|
||||||
#transparency_original = seq() / 10
|
transparency_original = seq() / 9
|
||||||
transparency_original = 1
|
transparency_original = 1
|
||||||
if "background" in clip:
|
if "background" in clip:
|
||||||
scene['front']['V1'].append({
|
scene['front']['V1'].append({
|
||||||
|
@ -287,13 +289,14 @@ def get_fragments(clips, voice_over):
|
||||||
if l.name.split(' ')[0].isdigit():
|
if l.name.split(' ')[0].isdigit():
|
||||||
fragment = {
|
fragment = {
|
||||||
'name': l.name,
|
'name': l.name,
|
||||||
'tags': [t['value'] for t in l.query['conditions'][1]['conditions']],
|
'tags': [t['value'] for t in l.query['conditions'][1]['conditions'] if t['operator'] == '=='],
|
||||||
|
'anti-tags': [t['value'] for t in l.query['conditions'][1]['conditions'] if t['operator'] == '!='],
|
||||||
'description': l.description
|
'description': l.description
|
||||||
}
|
}
|
||||||
fragment["id"] = int(fragment['name'].split(' ')[0])
|
fragment["id"] = int(fragment['name'].split(' ')[0])
|
||||||
fragment['clips'] = []
|
fragment['clips'] = []
|
||||||
for clip in clips:
|
for clip in clips:
|
||||||
if set(clip['tags']) & set(fragment['tags']):
|
if set(clip['tags']) & set(fragment['tags']) and not set(clip['tags']) & set(fragment['anti-tags']):
|
||||||
fragment['clips'].append(clip)
|
fragment['clips'].append(clip)
|
||||||
fragment["voice_over"] = voice_over.get(str(fragment["id"]), {})
|
fragment["voice_over"] = voice_over.get(str(fragment["id"]), {})
|
||||||
fragments.append(fragment)
|
fragments.append(fragment)
|
||||||
|
|
Loading…
Reference in a new issue