I would like to import an image as a plane, then add a MixShader and a Transparent BSDF, detach the Material Output Surface link, attach the BSDF to the MixShader, to the Material Output, then add the Transparent BSDF to the Mix Shader.

Is this possible to do with python coding? I am totally lost. My goal is making the image imported transparent with a script for EEVEE.

enter image description here

enter image description here

  • 1
    $\begingroup$ What have you tried so far? $\endgroup$
    – susu
    Jan 20, 2021 at 7:39
  • 1
    $\begingroup$ The linked dupe should pretty much answer your question. Otherwise please post your code so we can help out with details... $\endgroup$
    – brockmann
    Jan 20, 2021 at 8:09
  • 1
    $\begingroup$ Note: You can also pass use_transparency=True when calling the image as planes operator: bpy.ops.import_image.to_plane(use_transparency=True, files=[{'name':your_filepath}]), related: blender.stackexchange.com/q/121980 $\endgroup$
    – brockmann
    Jan 20, 2021 at 8:25
  • $\begingroup$ ...also . numerous other python related node questions. Eg blender.stackexchange.com/questions/145882/… blender.stackexchange.com/questions/5413/… @susu come on mate, is that (easily interpreted as passive aggresive) comment ever the least part helpful to the OP? For example Why here but not here? $\endgroup$
    – batFINGER
    Jan 20, 2021 at 8:27


Browse other questions tagged .