From 3e2654f88e991b32065a6f70c96f37246876742d Mon Sep 17 00:00:00 2001 From: Igor Tatarnikov Date: Tue, 20 Aug 2024 11:46:31 +0100 Subject: [PATCH] Added comments for fixing camera --- brainrender/video.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/brainrender/video.py b/brainrender/video.py index b62d630..1a23f97 100644 --- a/brainrender/video.py +++ b/brainrender/video.py @@ -134,6 +134,9 @@ def make_video( if not first_frame: logger.error("No keyframes found, can't fix camera") + # Sets the focal point of the first frame to the centre of mass of the + # full root mesh, since this focal point is set subsequent frames will + # have the same focal point unless a new camera is defined self.keyframes[0]["camera"][ "focal_point" ] = self.scene.root._mesh.center_of_mass()