Blender
Pas assez d'évaluations
BULK REPLACE TEXTURES FILE EXTENSION
De Alexandrovich
In this guide you will learn how to bulk replace file extensions of your textures keeping the original filename.
   
Récompenser
Ajouter aux favoris
Favoris
Retirer des favoris
BULK REPLACE TEXTURES FILE EXTENSION
LINK to Bulk Image Converter here[sourceforge.net]


STEP 1:

Assuming you used Bulk Image Converter to convert all textures in a folder, and both your original and converted textures exist in the same path:

In Blender, change view to TEXT EDITOR.


STEP 2:

Copy/Paste this:

import bpy
for img in bpy.data.images:
img.filepath = img.filepath.replace('.bmp', '.png')
img.reload()


Change .bmp to your original texture format and .png to the converted format

STEP 3:

Blender may freeze for a few seconds/minutes depending on how many textures it must fix.

When the process is done, and if you kept the converted textures in the same path as the original ones, you will see all your textures properly converted in your model.