1
$\begingroup$

I was wondering if there was a way to get the simple information. For example on the broadcast node in this case it has lost the image link, how can I get this information in python? This is the classic situation:

Classic situation with lost path

I would like to understand how this information can be obtained through blender bees if possible. And if there is also information about the path of the folder to the currently lost file

$\endgroup$
0
$\begingroup$

This could be useful, I should have found the method that checks the state of the images.

To check if the image in the node are "Purple":

import bpy

    ob = bpy.context.object
    mat=ob.active_material

        for n in mat.node_tree.nodes:
            if n.type=='TEX_IMAGE':
                img=n.image      
        for i in bpy.data.images:
            if i == img:
                print(i.has_data)

    ###if your material are lost/purple return true

This will go directly to material the node, but you can check it directly in bpy.data.images

for i in bpy.data.images:
    if not i.has_data:
        print('Purple/lost image find: ' + i.name)
##print a list with lost image file

So I suppose this is my answer

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.