mirror of
https://github.com/3b1b/manim.git
synced 2025-11-14 11:57:44 +00:00
Don't print info for pre-run scene
This commit is contained in:
parent
f8e6e7df3c
commit
85e90a1488
1 changed files with 3 additions and 1 deletions
|
|
@ -80,10 +80,12 @@ def compute_total_frames(scene_class, scene_config):
|
|||
pre_config = copy.deepcopy(scene_config)
|
||||
pre_config["file_writer_config"]["write_to_movie"] = False
|
||||
pre_config["file_writer_config"]["save_last_frame"] = True
|
||||
pre_config["file_writer_config"]["quiet"] = True
|
||||
pre_config["skip_animations"] = True
|
||||
pre_scene = scene_class(**pre_config)
|
||||
pre_scene.run()
|
||||
return int(pre_scene.time * scene_config["camera_config"]["frame_rate"])
|
||||
total_time = pre_scene.time - pre_scene.skip_time
|
||||
return int(total_time * scene_config["camera_config"]["frame_rate"])
|
||||
|
||||
|
||||
def get_scenes_to_render(scene_classes, scene_config, config):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue