mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Added --leave_progress_bars option, with the deault being to remove them
This commit is contained in:
parent
1064f80d5b
commit
214ba5979b
2 changed files with 8 additions and 1 deletions
|
@ -98,6 +98,11 @@ def parse_cli():
|
|||
action="store_true",
|
||||
help="Play a success/failure sound",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--leave_progress_bars",
|
||||
action="store_true",
|
||||
help="Leave progress bars displayed in terminal",
|
||||
)
|
||||
|
||||
# For live streaming
|
||||
module_location.add_argument(
|
||||
|
@ -184,6 +189,7 @@ def get_configuration(args):
|
|||
"start_at_animation_number": args.start_at_animation_number,
|
||||
"end_at_animation_number": None,
|
||||
"sound": args.sound,
|
||||
"leave_progress_bars": args.leave_progress_bars
|
||||
}
|
||||
|
||||
# Camera configuration
|
||||
|
|
|
@ -133,7 +133,8 @@ def main(config):
|
|||
"movie_file_extension",
|
||||
"start_at_animation_number",
|
||||
"end_at_animation_number",
|
||||
"output_file_name"
|
||||
"output_file_name",
|
||||
"leave_progress_bars",
|
||||
]
|
||||
])
|
||||
if config["save_pngs"]:
|
||||
|
|
Loading…
Add table
Reference in a new issue