mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Changed output directories (again) so that different resolutions go to different subdirectories
This commit is contained in:
parent
e566bd8c5c
commit
8125e4d320
1 changed files with 2 additions and 1 deletions
|
@ -552,10 +552,11 @@ class Scene(Container):
|
||||||
def get_movie_file_path(self, name = None, extension = None):
|
def get_movie_file_path(self, name = None, extension = None):
|
||||||
directory = self.output_directory
|
directory = self.output_directory
|
||||||
if self.include_render_quality_in_output_directory:
|
if self.include_render_quality_in_output_directory:
|
||||||
directory += "_%dp%d"%(
|
sub_dir = "%dp%d"%(
|
||||||
self.camera.pixel_shape[0],
|
self.camera.pixel_shape[0],
|
||||||
int(1.0/self.frame_duration)
|
int(1.0/self.frame_duration)
|
||||||
)
|
)
|
||||||
|
directory = os.path.join(directory, sub_dir)
|
||||||
if not os.path.exists(directory):
|
if not os.path.exists(directory):
|
||||||
os.makedirs(directory)
|
os.makedirs(directory)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue