其他分享
首页 > 其他分享> > manim add sounds,svgs and images

manim add sounds,svgs and images

作者:互联网

在manimlib/scene/scene_file_writer.py文件中将第354行的代码注释掉(subprocess.call(["rm",sound_file_path])),并在下面添加一行代码:os.remove(sound_file_path)

然后创建名为assets的文件夹,并创建raster_images,svg_images,sounds这三个子文件夹

比如svg图片,使用svg = SVGMobject("name")[0]来引用

标签:svgs,scene,add,file,svg,images,path,sounds
来源: https://www.cnblogs.com/daxiangcai/p/16357255.html