我需要使用 python 在搅拌机 2.58 中设置动画(即来自视频文件)世界纹理。我制作这样的纹理:
import bpy
# create new clouds texture
bpy.ops.texture.new()
wtex = bpy.data.textures[-1]
# set World texture
wrld = bpy.data.worlds['World']
slot = wrld.texture_slots.add()
slot.texture = wtex
slot.use_map_horizon = True
这将创建一个新的CloudsTexture并将其绑定到插槽。如何制作ImageTexture并将其设置为将视频作为源?或者,我如何指定由 bpy.ops.texture.new() 生成的新纹理的类型?