Tue, Apr 23, 11:57 PM CDT

Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Apr 23 11:28 pm)



Subject: Texture could not bn loaded.....


spacefractal ( ) posted Fri, 16 April 2021 at 1:49 AM · edited Mon, 19 February 2024 at 10:44 AM

How do im deal with this popup, an popup, that does not tell which texture that is missing. This cause impossible to fix the issue.

Im get this issue with some figures, which does looks fine.

Would been nice if there was a log.


RedPhantom ( ) posted Fri, 16 April 2021 at 8:26 AM
Site Admin Online Now!

The window for finding the image should show the name in 2 spots

missing texture.PNG

Assuming it doesn't have either, I think you'll have to look through the figure's textures and look for the missing one. I wasn't able to get Poser's Message Log to tell me anything.


Available on Amazon for the Kindle E-Reader Monster of the North and The Shimmering Mage

Today I break my own personal record for the number of days for being alive.
Check out my store here or my free stuff here
I use Poser 13 and win 10


adp001 ( ) posted Fri, 16 April 2021 at 8:43 AM · edited Fri, 16 April 2021 at 8:44 AM

Copy the following to a file with extension ".py" ("checkTexture.py" for example) and run it.

from __future__ import print_function
import sys, os

if sys.version_info.major > 2:
    basestring = str

SCENE = poser.Scene()

obj = SCENE.CurrentActor()
texturenodes = (poser.kNodeTypeCodeIMAGEMAP,
                poser.kNodeTypeCodeCyclesENVIRONMENTTEXTURE,
                poser.kNodeTypeCodeCyclesIMAGETEXTURE)
missed = set()

if obj:
    if obj.IsBodyPart():
        obj = obj.ItsFigure().RootActor()

    for mat in obj.Materials():
        for layer_idx in range(mat.NumLayers()):
            stree = mat.LayerShaderTree(layer_idx)
            for node in stree.Nodes():  # type: poser.ShaderNodeType
                if node.Type() in texturenodes:
                    for inp in node.Inputs():  # type: poser.ShaderNodeInputType
                        if inp.Name().startswith("Image"):
                            fname = inp.Value()
                            if fname and isinstance(fname, basestring):
                                if not os.path.exists(fname) and fname not in missed:
                                    print("MISSING FILE:", fname)
                                    print("    In material '%s'." % mat.Name())
                                    missed.add(fname)
    if not missed:
        print("All texture files are in place.")
else:
    print("Select an actor or a figure with material.")




adp001 ( ) posted Fri, 16 April 2021 at 8:48 AM

The script lists missed textures and the material they belong to.

Tested in P11 but should work in P12 too.




adp001 ( ) posted Fri, 16 April 2021 at 11:53 AM

Here is a direct download:

https://adp.spdns.org/checkTextures.py




spacefractal ( ) posted Fri, 16 April 2021 at 2:48 PM

looks like its more a bug.

The script says all textures is present, which means there us a bug.

Etc seens this happens if same figure has been installed in multiple places and a texture file as been currupted, but can load it from another path without issue.

For some reason its does not update the object and allways point to the old texture rather than that one its actuelly have been found, which would make more sense.

Howover im swapper the library order, then its does load without that issue, but there is some texture file that is currupted.


adp001 ( ) posted Fri, 16 April 2021 at 3:43 PM

Thre scripts does only check if a file with the given name is present. It does not check if this file is an image (maybe not anymore).

I changed the script. It now tries to open existing files as an image using Posers image library. Try that if you like.

Download (same name): https://adp.spdns.org/checkTextures.py




spacefractal ( ) posted Sat, 17 April 2021 at 1:45 AM

its was not a bug in the script (its worked as excepted), but more in poser. but thanks for the script anyway. Im deleted all corrupted files from the old installation (has nothing to lose here) by using a another tool.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.