• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

MSFS Fixing duplicate textures

Messages
1,072
Country
australia
Apologies if you already know how to do this but this is something I only learnt today and thought it might be useful.

If you've ever copied parts from one project to another in Blender then you may have come across duplicate textures. This is where Blender will rename any textures you import if there is already a texture with the same name. Blender will do this by appending .001 or .002 etc to the texture name.

It can be a bit of a pain in the butt.

Now, you could try searching for a python script to automatically fix these duplicate textures or you could try either of these two built in methods:

REMAP THE TEXTURES
Using the remap function you can remap all those .001 textures to the original names.

To do this go to your Layer view and select from the Display Mode - Blender File.

Click on Materials to expand show all your materials

Right click on the material you want to remap and select Remap Users

A pop up box will appear. Click on New ID and select the material you want to remap to then click OK.

Any part that uses the material you right clicked on will be remapped to the new material you selected.

This is a pretty quick and easy method if you only have a few textures to deal with but for anything more complex you will need the second method.

Image1.jpg

MATERIAL UTILITIES
Blender includes a plug-in called Material Utilities which can get rid of any .001/.002/.003 etc materials and fold them all down onto the original material.

Go to the menu and select Edit - Preferences - Add-ons and search for Material Utilities

Tick the box next to Material Utilities to activate the plug-in

Pressing Shift+Q will open the Material Utilities window

Go down to Specials at the bottom of the list

Select Merge Base Names

Click on Auto Rename/Replace and click on OK

In next to no time all the parts using .001/.002/.003 etc will be remapped to the base material name. It's like doing the REMAP function but for everything.

Image2.jpg

Of course, it goes without saying, that you should do this on a new saved copy of your project in case something goes horribly wrong.
 
Last edited:
Little reminder to myself so I don't waste time searching for a python script to do this.

The the remap function works to fix up Gltf Settings duplicates too. When importing parts and getting duplicate textures you may also get duplicate Gltf Settings in the material nodes. MSFS does not like any instances of Gltf Settings.001 etc. It won't draw your texture correctly if node in the material is not set Gltf Settings.

Using the remap function I described in the original post you can search for Gltf Settings in the Blender File view and if there are any duplicates they will show up as Gltf Settings.001, Gltf Settings.002 etc. You can then select those instances and remap them to Gltf Settings.
 
Back
Top