annotate flax/textcues_to_cuelist @ 1459:a156742f2005

checkpoint show data Ignore-this: 7622d77dbc1281e6f255e20416e365b4
author drewp@bigasterisk.com
date Sun, 12 Jun 2016 01:50:34 +0000
parents 45b12307c695
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
45b12307c695 Initial revision
drewp
parents:
diff changeset
1 #!/usr/bin/env python
45b12307c695 Initial revision
drewp
parents:
diff changeset
2
45b12307c695 Initial revision
drewp
parents:
diff changeset
3 import sys
45b12307c695 Initial revision
drewp
parents:
diff changeset
4 from CueFaders import CueList, Cue
45b12307c695 Initial revision
drewp
parents:
diff changeset
5
45b12307c695 Initial revision
drewp
parents:
diff changeset
6 cuelist = CueList('cues/dolly')
45b12307c695 Initial revision
drewp
parents:
diff changeset
7
45b12307c695 Initial revision
drewp
parents:
diff changeset
8 for line in sys.stdin.readlines():
45b12307c695 Initial revision
drewp
parents:
diff changeset
9 line = line.strip()
45b12307c695 Initial revision
drewp
parents:
diff changeset
10 if not line:
45b12307c695 Initial revision
drewp
parents:
diff changeset
11 continue
45b12307c695 Initial revision
drewp
parents:
diff changeset
12 page, name = line.split(' ', 1)
45b12307c695 Initial revision
drewp
parents:
diff changeset
13 print page, '|', name
45b12307c695 Initial revision
drewp
parents:
diff changeset
14 newcue = Cue(name)
45b12307c695 Initial revision
drewp
parents:
diff changeset
15 newcue.page = page
45b12307c695 Initial revision
drewp
parents:
diff changeset
16 cuelist.add_cue(newcue)