I’m writing an add-on and would like to automatically create a CompositorNodeImage and populate it appropriately. I’m having a difficult time figuring out how to attach an image to the node’s image property. I’ve got the file name (in the case of a single image) or file path (in the case of a image sequence) but I can’t seem to figure out the correct syntax to feed that information into a CompositorNodeImage. (Nor can I find an example in Blender’s files or online.)
Can someone post a working example of how to do this? Thanks!