全球主机交流论坛

标题: 求助大佬blender的问题? [打印本页]

作者: MisiCreate    时间: 2020-1-13 17:24
标题: 求助大佬blender的问题?
有大佬会blender吗,我有个模型需要给所有mesh多添加一个uvmap,想知道如何批量添加,网上找到的
import bpy
context = bpy.context
scene = context.scene
# all meshes on mesh objects in scene
meshes = [o.data for o in scene.objects
        if o.type == 'MESH']
# add a new "map1" UV to each        
for m in meshes:
    m.uv_textures.new("map1")
提示没有 uv_textures属性




欢迎光临 全球主机交流论坛 (https://443502.xyz/) Powered by Discuz! X3.4