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).
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 28/07/2008 at 13:10, xxxxxxxx wrote:
User Information: Cinema 4D Version: 9.6+ Platform: Windows ; Mac OSX ; Language(s) : C++ ;
--------- Hello All,
there is way to get the complete filename from a Xbitmap texture?
best regards renato
On 29/07/2008 at 02:25, xxxxxxxx wrote:
You have to get the filename with the BITMAPSHADER_FILENAME ID, see code below. If you are using relative paths you have to check manually for the project directory and the texture paths of the Cinema4D preferences.
> \> BaseChannel \*ch = NULL; \> ch = mat->GetChannel(CHANNEL_COLOR); \> if(ch) \> { \> PluginShader \*shd = NULL; \> shd = ch->GetShader(); \> \> if(shd && shd->GetType()==Xbitmap) \> { \> BaseContainer \*data = shd->GetDataInstance(); \> GePrint(data->GetFilename(BITMAPSHADER_FILENAME).GetString()); \> } \> } \>
\> BaseChannel \*ch = NULL; \> ch = mat->GetChannel(CHANNEL_COLOR); \> if(ch) \> { \> PluginShader \*shd = NULL; \> shd = ch->GetShader(); \> \> if(shd && shd->GetType()==Xbitmap) \> { \> BaseContainer \*data = shd->GetDataInstance(); \> GePrint(data->GetFilename(BITMAPSHADER_FILENAME).GetString()); \> } \> } \>
cheers, Matthias
On 30/07/2008 at 16:41, xxxxxxxx wrote:
Hello Matthias,
sorry for the delay. I don't checked "E-mail Notify me of Replies" when posted this question.
ok.. i know how to read the container.. but i hoped in a faster way to get the complete filename from the xbitmap.
I made by hands like you suggest
thanks renato