THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 15/06/2010 at 00:43, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 11.5
Platform: Windows ;
Language(s) : C++ ;
---------
Hello,
i like to read the size of an texture from a material which assigned to an base object.
I do this with the PluginShader.
PluginShader *shd = (PluginShader* )matdata->GetLink(MATERIAL_COLOR_SHADER, GetActiveDocument() , Xbitmap);
BaseBitmap *pbb = shd->GetBitmap();
if (pbb) {
lx = pbb->GetBw();
ly = pbb->GetBh();
}
But i get always an NULL pointer for the base bitmap??
Has someone an idea?