Applying an image in the Image/UV editor. -(Solved)

Hi. For the purposes of baking (normals) an image needs to be manually assigned inside of edit mode, in the UV editor, to the object receiving the baking information.

When I go through this process by hand, absolutely no information is passed to the Script/History windows. How/Where/What are the commands to apply an image as the active image to the UV’s of a model, so that it is the active image when baking?

I need to automate this, so, I need to find out what the commands are.

Any help greatly appreciated.

I tried to PM a mod that I know is a coder, but he has his PM’s disabled.

Does anyone know someone, who I could ask. I really need assistance on this, thanks.

in file - user preferences - interface there’s a check box called tooltips


That makes python syntax pop up when hovering over most things

Ah, got it, that did the trick. I need the bpy.ops.image.new() after setting edit mode / select all. Thanks for the help.