Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folder added that contains the config that was used for vcfb20 #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions vcfb20/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
#!/usr/bin/python3

from renderlib import *
from easing import *
import math

# URL to Schedule-XML
scheduleUrl = 'http://vcfb.de/2020/schedule.xml'

# For (really) too long titles
titlemap = {
#708: "Neue WEB-Anwendungen des LGRB Baden-Württemberg im Überblick"
}


def outroFrames(p):
frames = 2*fps
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
('plate', 'style', 'opacity', 0),
)

frames = 1*fps
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', 1),
('plate', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
)

frames = 2*fps
for i in range(0, frames):
yield (
('logo', 'style', 'opacity', 1),
('plate', 'style', 'opacity', 1),
)

def introFrames(p):
frames = math.floor(1.5*fps)
for i in range(0, frames):
yield (
('header', 'attr', 'y', 659),
('text', 'style', 'opacity', 0),
)

frames = 1*fps
for i in range(0, frames):
yield (
('text', 'style', 'opacity', "%.4f" % easeInCubic(i, 0, 1, frames)),
)

frames = math.ceil(3.5*fps)
for i in range(0, frames):
yield (
('text', 'style', 'opacity', 1),
)

def pauseFrames(p):
pass


def debug():
render(
'intro.svg',
'../intro.ts',
introFrames,
{
'$id': 6526,
'$title': 'Besser steuern durch Daten? - Zur Performativität soziotechnischer Systeme und der Quantifizierung der sozialen Welt',
'$subtitle': '',
'$personnames': 'Judith Hartstein und Anne K. Krüger'
}
)

#render(
# 'outro.svg',
# '../outro.ts',
# outroFrames
#)

# render('pause.svg',
# '../pause.ts',
# pauseFrames
# )

def tasks(queue, params, idlist, skiplist):
# iterate over all events extracted from the schedule xml-export
for event in events(scheduleUrl):
if not (idlist==[]):
if 000000 in idlist:
print("skipping id (%s [%s])" % (event['title'], event['id']))
continue
if int(event['id']) not in idlist:
print("skipping id (%s [%s])" % (event['title'], event['id']))
continue

# generate a task description and put them into the queue
if int(event['id']) not in skiplist:
queue.put(Rendertask(
infile = 'intro.svg',
outfile = str(event['id'])+".ts",
sequence = introFrames,
parameters = {
'$id': event['id'],
'$title': event['title'],
'$subtitle': event['subtitle'],
'$personnames': event['personnames']
}
))

# place a task for the outro into the queue
if not "out" in skiplist:
queue.put(Rendertask(
infile = 'outro.svg',
outfile = 'outro.ts',
sequence = outroFrames
))

# place the pause-sequence into the queue
#if not "pause" in skiplist:
# queue.put(Rendertask(
# infile = 'pause.svg',
# outfile = 'pause.ts',
# sequence = pauseFrames
# ))
Binary file added vcfb20/artwork/Computerfont.ttf
Binary file not shown.
15,584 changes: 15,584 additions & 0 deletions vcfb20/artwork/intro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7,907 changes: 7,907 additions & 0 deletions vcfb20/artwork/outro.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,626 changes: 6,626 additions & 0 deletions vcfb20/artwork/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.