pass parameter fro sequence generator, allow text changes by sequence
This commit is contained in:
parent
0e16e141c5
commit
8a5913d655
1 changed files with 4 additions and 1 deletions
|
@ -95,7 +95,7 @@ def rendertask(task):
|
||||||
|
|
||||||
# iterate through the animation seqence frame by frame
|
# iterate through the animation seqence frame by frame
|
||||||
# frame is a ... tbd
|
# frame is a ... tbd
|
||||||
for frame in task.sequence():
|
for frame in task.sequence(task.parameters):
|
||||||
# print a line for each and every frame generated
|
# print a line for each and every frame generated
|
||||||
if debug:
|
if debug:
|
||||||
print("frameNr {0:3d} => {1}".format(frameNr, frame))
|
print("frameNr {0:3d} => {1}".format(frameNr, frame))
|
||||||
|
@ -115,6 +115,9 @@ def rendertask(task):
|
||||||
elif type == 'attr':
|
elif type == 'attr':
|
||||||
el.attrib[key] = value
|
el.attrib[key] = value
|
||||||
|
|
||||||
|
elif type == 'text':
|
||||||
|
el.text = value
|
||||||
|
|
||||||
# write the generated svg-text into the output-file
|
# write the generated svg-text into the output-file
|
||||||
fp.write( etree.tostring(svg, encoding='unicode') )
|
fp.write( etree.tostring(svg, encoding='unicode') )
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue