from manim import * class ChangingCameraWidthAndRestore(MovingCameraScene): def construct(self): draw_point(self,30,40) #text = Text("Hello World").set_color(BLUE) #self.add(text) #self.camera.frame.save_state() #self.play(self.camera.frame.animate.set(width=text.width * 1.2)) #self.wait(0.3) #self.play(Restore(self.camera.frame)) def draw_point(self,x,y): p = Circle(color=BLACK,fill_opacity=1)#.move_to((x,y,0)) self.play(Create(p)) q = Circle(color=BLACK,fill_opacity=1).move_to((x,y,0)) self.play(self.camera.frame.animate.move_to(q)) self.play(Create(q))