On 28/04/2014 at 15:00, xxxxxxxx wrote:
I'm getting the bitmap filename from a color channel of a material with c4d.BITMAPSHADER_FILENAME
When the bitmap is in any of the default search paths, I only get a filename. For example, stripes.jpg
But the file stripes.jpg could be in doc_folder/tex or simply in doc_folder, or in Cinema 4D folder or in C4D folder, inside a tex folder, or inside the prefs folder or inside the prefs folder, inside a tex folder, etc.
All of these are default search paths.
But getting the filename is not enough for me because I need to access the file to, for example, duplicate it inside another folder.
So, how can I get a full pathname for any bitmap that is inside the color channel, even if the bitmap is inside any of the default search paths?
Must I check for all of them?