2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

blenderで非表示のUVマップを全削除するスクリプト

Last updated at Posted at 2017-11-03

このようにいつの間にか不要なUVマップがついていて、すべてのオブジェクトから非表示のUVマップを消す場合に使えます
image.png

deleteAllInactiveUvmaps.py
impoprt bpy

scene = bpy.context.scene
for obj in scene.objects:
  if obj.type == 'MESH':
    uv_textures = obj.data.uv_textures
    for uv in uv_textures:
      if uv.active_render == False and uv.name !='NGon Face':
        print('remove uv :'+uv.name+' of '+obj.name)
        uv_textures.remove(uv)

blender上のPythonコンソールなどから実行してください

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?