Allow scene extraction from a special file which contains an ALL_SCENE_CLASSES list and an OUTPUT_DIRECTORY. This is part of a move to make the output file organization independent from the sourcecode organization

This commit is contained in:
Grant Sanderson
2019-01-25 11:03:14 -08:00
parent 900e6ac837
commit 0255627922
2 changed files with 42 additions and 23 deletions

View File

@ -155,6 +155,7 @@ def get_module(file_name):
def get_configuration(args):
module = get_module(args.file)
file_writer_config = {
# By default, write to file
"write_to_movie": args.write_to_movie or not args.save_last_frame,
@ -165,8 +166,10 @@ def get_configuration(args):
"movie_file_extension": ".mov" if args.transparent else ".mp4",
"file_name": args.file_name,
}
if hasattr(module, "OUTPUT_DIRECTORY"):
file_writer_config["output_directory"] = module.OUTPUT_DIRECTORY
config = {
"module": get_module(args.file),
"module": module,
"scene_names": args.scene_names,
"open_video_upon_completion": args.preview,
"show_file_in_finder": args.show_file_in_finder,