求助: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
相关产品推荐
相关产品推荐

