Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing options to manim render #105

Open
hmeine opened this issue Oct 30, 2024 · 3 comments
Open

Passing options to manim render #105

hmeine opened this issue Oct 30, 2024 · 3 comments

Comments

@hmeine
Copy link

hmeine commented Oct 30, 2024

I have only just started using manim (and your extension) a few hours ago, but when composing a longer scene, the --from_animation_number option looks very useful to me (saving rendering time). Even --save_last_frame looks attractive when optimizing the placement of many items. Wouldn't it be very useful to be able to specify such options, ideally even with some UI elements (like an animation number input field or a checkbox for save last frame) in the side view?

@Rickaym
Copy link
Owner

Rickaym commented Oct 30, 2024

Interesting idea for the sideview elements, what do you reckon would be the most useful ones? Otherwise you can pass options to the manim renderer through the setting manim-sideview.commandLineArgs.

@e-dervieux
Copy link

I love the idea. In particular a "last frame" mode which only renders the last frame would be very nice! (because we can always write if Wrong: and TAB-shift the code past a certain point to render the current frame at a certain position in the code)

@hmeine
Copy link
Author

hmeine commented Nov 3, 2024

Well, the most useful ones I found to be using on the commandline are:
-n <start_anim> (for when everything before that is looking fine to me and I want to save time on rendering & viewing)
-n <start_anim>-<end_anim> for when I later decide to optimize a middle part
-s for optimizing the layout

I just found that -s can even be combined with -n to show the last frame of a certain <end_anim> (no need for the scene code changes @e-dervieux suggested).

The -s could just be a checkbox. -n could be two integer entry fields, but it should be possible to leave the end_anim empty. (start could default to 0.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants