Hello everyone!
I've written an exporter for some meshes and it also exports the texture filenames. This works ok for small filenames but if the filename is longer than 21 chars, then the rest is cut. The funny thing is that the texture works inside of blender and shows correctly. Is this problem known? Or this just a limitation of the python api?
Any help is really appreciated.
Thanks and greetings
Stefan
Texturefilename exporter only returns crippled filenames
Moderators: jesterKing, stiv
clearly you're doing the wrong thing, using the name of the image datablock instead of getting the filename
Code: Select all
import Blender
ob = Blender.Object.GetSelected()[0]
me = ob.getData()
print me.faces[0].image.getFilename()