import bpy
for obj in bpy.data.objects:
for matslot in obj.material_slots:
for texslot in matslot.material.texture_slots:
if texslot is not None and texslot.texture.type == 'IMAGE':
if texslot.texture.image is not None:
print('object', obj.name, 'has material',
matslot.material.name, 'that uses image',
texslot.texture.image.name)
print('It is saved at', texslot.texture.image.filepath)
把你发现的东西扩展一下-
我希望fbx格式支持每种材质的多个图像,并且由于混合材质可以有多个纹理关联,因此可以使用以下内容执行更完整的搜索
答案似乎是材料[i]。主动的峎质。我问得有点太早了。在
相关问题 更多 >
编程相关推荐