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.
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$