THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 23/02/2003 at 09:52, xxxxxxxx wrote:
Cinema 4D Version: 8.012
Platform: Windows ;
Language(s) : C++ ;
When I check if a Bhodinut 3D Shader Material in a linkbox is Mmaterial or Mbase or Mplugin, it tells me that it is none of those. So what is it then??
Why? Don´t they belong to the basematerial class?
On 24/02/2003 at 11:21, xxxxxxxx wrote:
if you use GetType() you get the ID of the plugin.
Atom* link=((Atom* )linker1->GetLink(doc));
if (link->IsInstanceOf(Mplugin)) GePrint("I am a 3d-shader");
On 24/02/2003 at 11:23, xxxxxxxx wrote:
thanks, already found out and found a shorter way. GetMaterialLink will only be valid if it is really a material.
Thanks anyway for your reply! Always appreciated.