Simple script to reimport an obj and replace materials

Hello, with my very limited scripting skills I wrote a simple script that automatically reimports an obj file with the same name of the active object and translates some materials. It is made for my personal use but I think since it could be usefull for others I just share it^^
The material translation (Material A of imported model -> Material B already in blendfile) is stored in a pickled dictionary and it comes with a very simple editor in the blender console. You need to have the console toggled OFF before you run the script! The obj should be in a subfolder called “export”.
let me know if it works.

reimporter.py (4.3 KB)

2 Likes

could you explain how can l install this?

could you prepare a tutorial for dummies?