Manim-Notebook / manim-notebook

Simple commands to replicate the manim dev workflow in VSCode
MIT License
5 stars 0 forks source link

TODO: camera motions #6

Closed VladimirFokow closed 1 week ago

VladimirFokow commented 2 weeks ago

how is it done on the video?


(I propose the shortcut cmd+' cmd+v)

Splines commented 2 weeks ago

This is here in the video How I animate 3Blue1Brown. The code to copy the current camera position to the clipboard is found here.

VladimirFokow commented 1 week ago

If you look closely at the video, you see two occurrences when Grant does his shortcut, and both times the "animation" window is focused when the shortcut is clicked.

I don't know how one would create such a shortcut.
What I do know - is to create a shortcut when the VSCode window is focused, to do:

executeTerminalCommand("self.copy_frame_positioning()")

but then the terminal would not be unchanged (like it is in the video). But it's okay.

bhoov commented 1 week ago

both times the "animation" window is focused when the shortcut is clicked.

I don't know how one would create such a shortcut.

@VladimirFokow looks like his shortcuts are defined in the manim library and not through a sublime plugin. See this line in the InteractiveScene.

Also, is the second TODO of

refactor this ... instead of only there - add \x0C and \x1b in the executeTerminalCommand function itself (we can add options to this function which dictate: either add these symbols or not)

relevant to this issue? I am happy to make this a new issue if not

VladimirFokow commented 1 week ago

ooooh, nice! It already works!: shift+d on the "Animation" window

And thanks - there we see many other shortcuts as well!

We can close this issue