mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Spit out raw content.
Previewing using an Intensity Pro 4K and secret monitor-sauce.
This commit is contained in:
parent
cfe815f0d6
commit
17b5a1a96f
8
main.py
8
main.py
@ -138,6 +138,12 @@ def main(args, prof):
|
|||||||
time.sleep(0.01)
|
time.sleep(0.01)
|
||||||
yield None
|
yield None
|
||||||
save(rdr.out, name, buf)
|
save(rdr.out, name, buf)
|
||||||
|
if args.rawfn:
|
||||||
|
try:
|
||||||
|
buf.tofile(args.rawfn + '.tmp')
|
||||||
|
os.rename(args.rawfn + '.tmp', args.rawfn)
|
||||||
|
except e:
|
||||||
|
print 'Failed to write %s: %s' % (args.rawfn, e)
|
||||||
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
|
print '%s (%3d/%3d), %dms' % (name, idx, len(times), evt.time())
|
||||||
yield name, buf
|
yield name, buf
|
||||||
save(rdr.out, name, None)
|
save(rdr.out, name, None)
|
||||||
@ -169,6 +175,8 @@ if __name__ == "__main__":
|
|||||||
default='.')
|
default='.')
|
||||||
parser.add_argument('--subdir', action='store_true',
|
parser.add_argument('--subdir', action='store_true',
|
||||||
help="Use basename as subdirectory of out dir, instead of prefix")
|
help="Use basename as subdirectory of out dir, instead of prefix")
|
||||||
|
parser.add_argument('--raw', metavar='PATH', type=str, dest='rawfn',
|
||||||
|
help="Target file for raw buffer, to enable previews.")
|
||||||
parser.add_argument('--half', action='store_true',
|
parser.add_argument('--half', action='store_true',
|
||||||
help='Use half-loops when converting nodes to animations')
|
help='Use half-loops when converting nodes to animations')
|
||||||
parser.add_argument('--print', action='store_true',
|
parser.add_argument('--print', action='store_true',
|
||||||
|
Loading…
Reference in New Issue
Block a user