BadDogSkyrim / PyNifly

Export/Import tools between Blender and the Nif format, using Bodyslide/Outfit Studio's Nifly layer. Supports Skyrim LE, Skyrim SE, Fallout 4, Fallout New Vegas, Fallout 76, and Fallout 3.
GNU General Public License v3.0
167 stars 15 forks source link

Most texture paths get ignored during scripted batch import #213

Open 6ooflames opened 4 months ago

6ooflames commented 4 months ago

My automated cell import script still works to import the meshes for the cells. https://github.com/6ooflames/F4RefToBlender/blob/main/Source/importreference.py

But most textures (95%) don't get loaded from their paths. There is no difference with the files that do end up getting loaded. My question is if I need to change the batch import or if this is a (unknown) problem with PyNifly...

Regards, David

BadDogSkyrim commented 4 months ago

Yeah, that.

Textures will get imported if the importer can find them and Blender can read them.

The latest Blender does pretty well with modern dds formats. Older versions tend to choke on them.

If the importer finds a png where it expects a dds, it will read the png by preference.

It will look first in the same folder tree as the nif. That is, it goes up the folder chain until it finds a "meshes" folder, looks for a sibling "textures" folder, and uses that as the root.

If that fails, it looks in Blender's "textures" folder, using that as the root.