1
$\begingroup$

I have a huge amount of image planes, each has a different image linked to the base color, the texture applied is a png with alpha, in order to make the alpha work in EEVEE I need to change the material settings Blend Mode to Alpha Blend, and Shadow Mode to Alpha Hashed, by default both are set to Opaque.
I changed this for one of the materials, but going through this manually for each image plane is not pratical, is there a way to copy the material settings only without having to copy the whole material?

$\endgroup$
2
  • 1
    $\begingroup$ generally the way to do it is to select all the object, go in the settings, select the setting you want, and alt enter, but it doesn't seem to work for the Blend mode... $\endgroup$
    – moonboots
    Commented Oct 8, 2020 at 10:44
  • $\begingroup$ Are you sure about this method, I tried it for the Specular and still doesn't work $\endgroup$
    – Georges D
    Commented Oct 8, 2020 at 11:53

1 Answer 1

1
$\begingroup$

Here's a little script for you. Just select all the planes and run the script. (It assumes that each plane has only 1 material)

import bpy

for obj in bpy.context.selected_objects:
    m = obj.data.materials[0]
    m.blend_method = 'BLEND'
    m.shadow_method = 'HASHED'
$\endgroup$
1
  • $\begingroup$ Great, many thanks $\endgroup$
    – Georges D
    Commented Oct 8, 2020 at 12:35

You must log in to answer this question.

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