Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Changed output directories (again) so that different resolutions go to different subdirectories

Grant Sanderson8125e4d320c1
diff --git a/scene/scene.py b/scene/scene.py
index 04d2ddf35..f17acd9e8 100644
--- a/scene/scene.py
+++ b/scene/scene.py
@@ -552,10 +552,11 @@ class Scene(Container):
def get_movie_file_path(self, name = None, extension = None):
directory = self.output_directory
if self.include_render_quality_in_output_directory:
- directory += "_%dp%d"%(
+ sub_dir = "%dp%d"%(
self.camera.pixel_shape[0],
int(1.0/self.frame_duration)
)
+ directory = os.path.join(directory, sub_dir)
if not os.path.exists(directory):
os.makedirs(directory)