I'm trying to open an image through this UI element via code, but Blender info doesn't return all the necessary steps to do it.
All it shows is this function which does not load the image and assign it:
bpy.ops.image.open(filepath="C:\\Users\\xande\\Desktop\\uvchecker.png", directory="C:\\Users\\xande\\Desktop\\", files=[{"name":"uvchecker.png", "name":"uvchecker.png"}], show_multiview=False)
Does anyone know how to do this?
The images below are the before and after states of the result I want to achieve through script.