Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
On 17/09/2013 at 05:38, xxxxxxxx wrote:
User Information: Cinema 4D Version: Platform: 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());
-ScottA
On 17/09/2013 at 09:09, xxxxxxxx wrote:
thank you very much mr.ayers!