全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 805|回复: 0

求助大佬blender的问题?

[复制链接]
发表于 2020-1-13 17:24:24 | 显示全部楼层 |阅读模式
有大佬会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属性
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-27 21:03 , Processed in 0.057161 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表