MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / update

Method update

mGPT/render/blender/camera.py:46–52  ·  view source on GitHub ↗
(self, newroot)

Source from the content-addressed store, hash-verified

44 self._root = first_root
45
46 def update(self, newroot):
47 delta_root = newroot - self._root
48
49 self.camera.location.x += delta_root[0]
50 self.camera.location.y += delta_root[1]
51
52 self._root = newroot

Callers 2

renderFunction · 0.95
render_animationFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected