1
$\begingroup$

I have several different shaders in my .blend file that point to the same image. Problem is, that image is in the wrong place, so it's showing up magenta on the model. Is there a way (perhaps using the outliner) to re-point all references of one image to another image?

$\endgroup$
1
  • 1
    $\begingroup$ Hi :). You're actually asking two things at once. To repair broken links use this answer. To remap all references to a different image use this answer $\endgroup$ Commented Dec 3, 2021 at 8:42

1 Answer 1

0
$\begingroup$

you can use this python script:

import bpy


for ob in bpy.context.scene.objects:

    if ob.empty_display_type == "IMAGE":
        if ob.data.filepath == "/old_path/old_file_name.png":
            ob.data.filepath = "/new_path/new_file_name.png"
$\endgroup$

Not the answer you're looking for? Browse other questions tagged .