Skip to content

Commit

Permalink
Temporarily removing relative imports
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Jul 11, 2018
1 parent f2f9c61 commit 4075bb3
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 85 deletions.
140 changes: 70 additions & 70 deletions big_ol_pile_of_manim_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,84 +14,84 @@
"""
from __future__ import absolute_import

from .constants import *
from constants import *

from .animation.animation import *
from .animation.composition import *
from .animation.creation import *
from .animation.indication import *
from .animation.movement import *
from .animation.numbers import *
from .animation.rotation import *
from .animation.specialized import *
from .animation.transform import *
from .animation.update import *
from animation.animation import *
from animation.composition import *
from animation.creation import *
from animation.indication import *
from animation.movement import *
from animation.numbers import *
from animation.rotation import *
from animation.specialized import *
from animation.transform import *
from animation.update import *

from .camera.camera import *
from .camera.mapping_camera import *
from .camera.moving_camera import *
from .camera.three_d_camera import *
from camera.camera import *
from camera.mapping_camera import *
from camera.moving_camera import *
from camera.three_d_camera import *

from .continual_animation.continual_animation import *
from .continual_animation.from_animation import *
from .continual_animation.numbers import *
from .continual_animation.update import *
from continual_animation.continual_animation import *
from continual_animation.from_animation import *
from continual_animation.numbers import *
from continual_animation.update import *

from .mobject.frame import *
from .mobject.functions import *
from .mobject.geometry import *
from .mobject.matrix import *
from .mobject.mobject import *
from .mobject.number_line import *
from .mobject.numbers import *
from .mobject.probability import *
from .mobject.shape_matchers import *
from .mobject.svg.brace import *
from .mobject.svg.drawings import *
from .mobject.svg.svg_mobject import *
from .mobject.svg.tex_mobject import *
from .mobject.three_dimensions import *
from .mobject.types.image_mobject import *
from .mobject.types.point_cloud_mobject import *
from .mobject.types.vectorized_mobject import *
from .mobject.value_tracker import *
from mobject.frame import *
from mobject.functions import *
from mobject.geometry import *
from mobject.matrix import *
from mobject.mobject import *
from mobject.number_line import *
from mobject.numbers import *
from mobject.probability import *
from mobject.shape_matchers import *
from mobject.svg.brace import *
from mobject.svg.drawings import *
from mobject.svg.svg_mobject import *
from mobject.svg.tex_mobject import *
from mobject.three_dimensions import *
from mobject.types.image_mobject import *
from mobject.types.point_cloud_mobject import *
from mobject.types.vectorized_mobject import *
from mobject.value_tracker import *

from .for_3b1b_videos.common_scenes import *
from .for_3b1b_videos.pi_creature import *
from .for_3b1b_videos.pi_creature_animations import *
from .for_3b1b_videos.pi_creature_scene import *
from for_3b1b_videos.common_scenes import *
from for_3b1b_videos.pi_creature import *
from for_3b1b_videos.pi_creature_animations import *
from for_3b1b_videos.pi_creature_scene import *

from .once_useful_constructs.arithmetic import *
from .once_useful_constructs.combinatorics import *
from .once_useful_constructs.complex_transformation_scene import *
from .once_useful_constructs.counting import *
from .once_useful_constructs.fractals import *
from .once_useful_constructs.graph_theory import *
from .once_useful_constructs.light import *
from once_useful_constructs.arithmetic import *
from once_useful_constructs.combinatorics import *
from once_useful_constructs.complex_transformation_scene import *
from once_useful_constructs.counting import *
from once_useful_constructs.fractals import *
from once_useful_constructs.graph_theory import *
from once_useful_constructs.light import *

from .scene.graph_scene import *
from .scene.moving_camera_scene import *
from .scene.reconfigurable_scene import *
from .scene.scene import *
from .scene.sample_space_scene import *
from .scene.graph_scene import *
from .scene.scene_from_video import *
from .scene.three_d_scene import *
from .scene.vector_space_scene import *
from .scene.zoomed_scene import *
from scene.graph_scene import *
from scene.moving_camera_scene import *
from scene.reconfigurable_scene import *
from scene.scene import *
from scene.sample_space_scene import *
from scene.graph_scene import *
from scene.scene_from_video import *
from scene.three_d_scene import *
from scene.vector_space_scene import *
from scene.zoomed_scene import *

from .utils.bezier import *
from .utils.color import *
from .utils.config_ops import *
from .utils.images import *
from .utils.iterables import *
from .utils.output_directory_getters import *
from .utils.paths import *
from .utils.rate_functions import *
from .utils.simple_functions import *
from .utils.sounds import *
from .utils.space_ops import *
from .utils.strings import *
from utils.bezier import *
from utils.color import *
from utils.config_ops import *
from utils.images import *
from utils.iterables import *
from utils.output_directory_getters import *
from utils.paths import *
from utils.rate_functions import *
from utils.simple_functions import *
from utils.sounds import *
from utils.space_ops import *
from utils.strings import *

# Non manim libraries that are also nice to have without thinking

Expand Down
19 changes: 10 additions & 9 deletions extract_scene.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# !/usr/bin/env python2

from __future__ import print_function
from __future__ import absolute_import
from __future__ import print_function
import sys
import argparse
import imp
Expand All @@ -11,11 +11,11 @@
import subprocess as sp
import traceback

from .constants import *
from constants import *

from .scene.scene import Scene
from .utils.sounds import play_error_sound
from .utils.sounds import play_finish_sound
from scene.scene import Scene
from utils.sounds import play_error_sound
from utils.sounds import play_finish_sound

HELP_MESSAGE = """
Usage:
Expand Down Expand Up @@ -76,7 +76,8 @@ def get_configuration():
args.output_name)
expected_ext = '.png' if args.show_last_frame else '.mp4'
if output_name_ext not in ['', expected_ext]:
print("WARNING: The output will be to (doubly-dotted) %s%s" % output_name_root % expected_ext)
print("WARNING: The output will be to (doubly-dotted) %s%s" %
output_name_root % expected_ext)
output_name = args.output_name
else:
# If anyone wants .mp4.mp4 and is surprised to only get .mp4, or such... Well, too bad.
Expand Down Expand Up @@ -153,12 +154,12 @@ def handle_scene(scene, **config):

if config["show_file_in_finder"]:
commands.append("-R")

if config["show_last_frame"]:
commands.append(scene.get_image_file_path())
else:
commands.append(scene.get_movie_file_path())
#commands.append("-g")
# commands.append("-g")
FNULL = open(os.devnull, 'w')
sp.call(commands, stdout=FNULL, stderr=sp.STDOUT)
FNULL.close()
Expand Down
12 changes: 6 additions & 6 deletions stage_scenes.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
from __future__ import print_function
from __future__ import absolute_import
from __future__ import print_function
import inspect
import os
import sys

from .constants import PRODUCTION_QUALITY_CAMERA_CONFIG
from .constants import PRODUCTION_QUALITY_FRAME_DURATION
from .extract_scene import get_module
from .extract_scene import is_scene
from .utils.output_directory_getters import get_movie_output_directory
from constants import PRODUCTION_QUALITY_CAMERA_CONFIG
from constants import PRODUCTION_QUALITY_FRAME_DURATION
from extract_scene import get_module
from extract_scene import is_scene
from utils.output_directory_getters import get_movie_output_directory


def get_sorted_scene_classes(module_name):
Expand Down

0 comments on commit 4075bb3

Please sign in to comment.