fix outro frames in intro render
This commit is contained in:
parent
bc79f2422d
commit
6bfaf0296d
1 changed files with 10 additions and 8 deletions
|
@ -7,7 +7,6 @@ import glob
|
||||||
import math
|
import math
|
||||||
import shutil
|
import shutil
|
||||||
import errno
|
import errno
|
||||||
import shutil
|
|
||||||
from lxml import etree
|
from lxml import etree
|
||||||
from xml.sax.saxutils import escape as xmlescape
|
from xml.sax.saxutils import escape as xmlescape
|
||||||
import cssutils
|
import cssutils
|
||||||
|
@ -17,7 +16,7 @@ from urllib.request import urlopen
|
||||||
|
|
||||||
# Frames per second. Increasing this renders more frames, the avconf-statements would still need modifications
|
# Frames per second. Increasing this renders more frames, the avconf-statements would still need modifications
|
||||||
fps = 25
|
fps = 25
|
||||||
debug = False
|
debug = True
|
||||||
args = None
|
args = None
|
||||||
|
|
||||||
cssutils.ser.prefs.lineSeparator = ' '
|
cssutils.ser.prefs.lineSeparator = ' '
|
||||||
|
@ -79,6 +78,9 @@ def rendertask(task):
|
||||||
if debug:
|
if debug:
|
||||||
print("generating {0} from {1}".format(task.outfile, task.infile))
|
print("generating {0} from {1}".format(task.outfile, task.infile))
|
||||||
|
|
||||||
|
if not args.skip_frames and not 'only_rerender_frames_after' in task.parameters:
|
||||||
|
shutil.rmtree(os.path.join(task.workdir, '.frames'))
|
||||||
|
|
||||||
# make sure a .frames-directory exists in out workdir
|
# make sure a .frames-directory exists in out workdir
|
||||||
ensurePathExists(os.path.join(task.workdir, '.frames'))
|
ensurePathExists(os.path.join(task.workdir, '.frames'))
|
||||||
|
|
||||||
|
@ -127,7 +129,7 @@ def rendertask(task):
|
||||||
|
|
||||||
frameNr += 1
|
frameNr += 1
|
||||||
continue
|
continue
|
||||||
else:
|
elif not skip_rendering:
|
||||||
cache[frame] = frameNr
|
cache[frame] = frameNr
|
||||||
|
|
||||||
# apply the replace-pairs to the input text, by finding the specified xml-elements by thier id and modify thier css-parameter the correct value
|
# apply the replace-pairs to the input text, by finding the specified xml-elements by thier id and modify thier css-parameter the correct value
|
||||||
|
|
Loading…
Add table
Reference in a new issue