52 Commits

Author SHA1 Message Date
0692afdfec Bug fix 2024-12-09 11:59:16 -06:00
14c6fdc1d9 Slight refactor of get_indent 2024-12-09 09:49:48 -06:00
90dfb02cc6 Move get_scene_module logic to extract_scene.py 2024-12-06 12:24:16 -07:00
361d9d0652 Minor clean up 2024-12-05 14:42:22 -06:00
96a4a4b76f Factor out configuration to be passed into a scene vs. that used to run a scene 2024-12-05 14:36:21 -06:00
34ad61d013 Clean up how configuration is handled
In principle, all we need here is that manim looks to the default_config.yaml file, and updates it based on any local configuration files, whether in the current working directory or as specified by a CLI argument.
2024-12-05 11:53:18 -06:00
bc107787cc Clean up get_scenes_to_render 2023-02-03 11:45:47 -08:00
b25f022859 Make it an option (default to false) to prerun a scene to calculate its number of frames 2023-02-03 11:06:07 -08:00
cae13aa1f0 Add space 2023-01-08 10:15:22 -05:00
0c1abebd95 Don't save last frame by default 2023-01-04 16:39:59 -08:00
4e014d7a8f Have get_scene_config automatically find intersection of Scene parameters and config keys
Previously it required duplicating any new parameter
2022-12-29 14:36:50 -08:00
e728196814 Remove implicit string concatenation 2022-12-18 10:50:34 -08:00
8882030136 thumbnails 2022-08-27 12:11:55 +08:00
8719107b18 fix the bug that progress bar can't be correctly showed while rendering if scene class name isn't passed in args explicitly. 2022-08-27 11:25:36 +08:00
6decb0c32a Rename frame_rate -> fps 2022-05-14 17:47:31 -07:00
308aadcec5 Make show_animation_progress effective 2022-05-02 11:09:09 -07:00
2ba9243067 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-04-23 09:03:53 -07:00
2737d9a736 Have BlankScene inherit from InteractiveScene 2022-04-22 08:33:18 -07:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
602809758e Video work (#1739)
* Enable setting points to a null list, and adding one point at a time.

* Add refresh_locked_data

* Add presenter mode to scenes with -p option

* Allow for an embed by hitting e during interaction

* Add set_min_height, etc.

* Make sure null parametric curve has at least one point

* Account for edge case where \{ is used in Tex

* Allow for logging notes in wait calls, useful for presenter mode

* Simplify choose, and add gen_choose for fractional amounts

* Default to no top on axes

* Allow match_x, match_y, etc. to take in a point

* Allow wait calls to ignore presenter mode

* Just use math.combo, no caching with choose(n, r)

* Use generator instead of list in bezier

* Bubble init_colors should override

* Account for "px" values read in from an svg

* Stop displaying when writing is happening

* Update the way Bubble override SVG colors
2022-02-13 15:16:16 -08:00
85e90a1488 Don't print info for pre-run scene 2021-12-07 10:07:15 -08:00
9dd1f47dab Create single progress display for full scene render
When a scene is written to file, it will now do a preliminary run of a copy of the scene with skip_animations turned on to count the total frames, which has the added benefit of catching runtime errors early, and allowing an quicker preview of the last frame to be sure everything will render as expected.

The Progress display bars for individual animations are replaced with a more global progress display bar showing the full render time for the scene.

This has the downside that all the non-rendering computations in a scene are run twice, so any scene with slow computations unrelated to rendering will take longer. But those are rarer, so the benefits seem worth it.
2021-11-30 11:41:33 -08:00
7425057d9f use rich to log 2021-10-07 17:37:10 +08:00
00fe33957c rename custom_defaults -> custom_config defaults -> default_config 2021-02-07 21:38:19 +08:00
c0f6e94545 Removed unused import that was added by IDE autocomplete!! 2021-02-05 13:11:26 +05:30
390bfac9df prompt_user_for_choice now prompts for Scene Name or Number 2021-02-05 13:09:03 +05:30
b1efee5088 Grammar correction
mulziple -> multiple, line 35.
2021-02-04 11:30:13 -03:00
78848b971c fix a wrong usage of logging.log 2021-01-15 20:21:17 +08:00
6da1836f02 Take scene finding messages out of constants 2021-01-02 22:26:49 -08:00
e01496e8bd Rearrange how passing in no module or scenes is handled 2021-01-02 22:20:13 -08:00
93fe783b80 Make it so that simply typing 'python -m manim' will embed you in a blank scene to work with 2021-01-02 22:03:00 -08:00
cf01a215db Stop treating extract_scene like a script 2021-01-02 19:03:01 -08:00
8b2785fdc9 fix bugs in extract_scene.py 2021-01-02 19:17:11 +08:00
ebd4016fb3 Small refactor of extract_scene et. al. 2020-02-11 19:52:14 -08:00
82a1b05f28 Add a feature #650 2019-07-26 14:34:21 +08:00
3cee3de94f Update extract_scene.py 2019-07-24 18:01:12 -05:00
4fa782b8b5 Remove extract_scene use of an All_SCENES list 2019-04-21 08:12:44 -07:00
3393bf616b Fix --preview on cygwin 2019-04-03 21:10:20 -07:00
0255627922 Allow scene extraction from a special file which contains an ALL_SCENE_CLASSES list and an OUTPUT_DIRECTORY. This is part of a move to make the output file organization independent from the sourcecode organization 2019-01-25 11:03:14 -08:00
900e6ac837 Use frame_rate, instead of frame_duration, and make that part of the camera rather than the scene 2019-01-25 10:13:17 -08:00
8ae0556394 First pass at SceneFileWriter refactor 2019-01-24 21:47:40 -08:00
214ba5979b Added --leave_progress_bars option, with the deault being to remove them 2019-01-16 11:08:14 -08:00
199a3b82c6 Make it possible to render multiple scenes 2019-01-12 12:31:29 -08:00
d98d1ec610 Changed default behavior to have no finishing sound, and instead of passing in --no-sound to prevent the sound, one would pass in --sound to activate it 2019-01-07 13:24:16 -08:00
b7cb66fe5d Tiny PEP fix 2019-01-04 12:46:52 -08:00
4d069db15c add option to suppress success/failure sound (#385) 2018-12-30 12:53:38 -08:00
F.W
11781a5baa Use os.openfile() on Windows and gitignore media folder (#384)
* Gitignored media and .vscode

* Switched to os.startfile for Windows
2018-12-29 17:37:28 -08:00
54d43313be print to stderr for scene not found 2018-12-28 23:06:14 -08:00
afdf907abc fix imports, remove __init__.py files, some pep8 linting 2018-12-27 09:41:41 -08:00
e294c67801 add error codes to exits 2018-12-26 20:57:01 -08:00