You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:Manim CE运行代码报错AttributeError:Camera对象无light_source属性

Manim(CE)运行报错:AttributeError: 'Camera' object has no attribute 'light_source'

我在查找3Blue1Brown视频的Manim源码时,被全息视频里的双缝实验部分吸引。随后安装了Manim(CE)进行实验,移植该部分代码后已经解决了导入错误,但运行侧视图时出现如下错误:
AttributeError: 'Camera' object has no attribute 'light_source'

相关代码片段:

def setup(self):
    super().setup()
    self.camera.light_source.move_to(self.light_position)

已尝试自行查找解决方案但无果,希望能得到帮助,如需更多信息可补充提供。

内容的提问来源于stack exchange,提问作者Binitpyro

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 00:15:57