texture filename

On 17/09/2013 at 05:38, xxxxxxxx wrote:

User Information:
Cinema 4D Version:    
Language(s) :

any code example/suggestion how to get the filename of a texture from a material channel?
i can get the color and brightness from CHANNEL_COLOR but can't get my hand on the damn tex...

On 17/09/2013 at 05:39, xxxxxxxx wrote:

r14, c++

On 17/09/2013 at 08:50, xxxxxxxx wrote:

    BaseMaterial *mat = doc->GetFirstMaterial();  
  BaseChannel *chan = mat->GetChannel(CHANNEL_COLOR);  
  //Get the full path to the image file  
  Filename image = chan->GetData().GetFilename(BASECHANNEL_SUGGESTEDFOLDER)+Filename(chan->GetData().GetString(BASECHANNEL_TEXTURE));  
  GePrint("Texture file: "+image.GetString());


On 17/09/2013 at 09:09, xxxxxxxx wrote:

thank you very much mr.ayers!