Get the filename path from a Xbitmap
-
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 -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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()); \> } \> } \>
cheers,
Matthias -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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