I am scripting an addon to help with workflow and I cannot get the align_axis() param of the import image as the plane to work. It always aligns it to the main axis, I am trying to get it to align to a Z+ (So up.)
bpy.ops.import_image.to_plane(files=[{"name":scenename+".png", "name":scenename+".png"}], directory=filepath, shader="SHADELESS", align_axis="Z+")
Any help would be much appreciated as I cannot work out what I am doing wrong.
All the best.