annotate flax/textcues_to_cuelist @ 929:c20c2eea6fce

another hack to stop graphfile from thinking its own new empty file means it should delete all the statements in that context Ignore-this: 94639afbbe8d3a0abd8a06e16922394f
author Drew Perttula <drewp@bigasterisk.com>
date Tue, 11 Jun 2013 20:25:02 +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)