I have looked everywhere and am pretty stumped I can’t seem to find the answer to this. Is there a way of getting the texture currently active in the UV/ Image Editor without going through the mesh?
I’m working with a custom file format and while the model export works fine it would be nice to be able to export only a texture. Note that I’m saying a texture; this does not nescesarily have to be the one applied to the currently selected mesh.
The API docs do mention a context.texture member, but this doesn’t seem to exist. Any thoughts?
EDIT: And as expected I was missing the obvious.
works like a charm! =)