Skip to content

Commit

Permalink
Added comments for fixing camera
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTatarnikov committed Aug 20, 2024
1 parent 31475e6 commit 3e2654f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brainrender/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3e2654f

Please sign in to comment.