Bhodinut 3D Shader *Material*

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:

User Information:
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?
Thanks
Samir

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 24/02/2003 at 11:21, xxxxxxxx wrote:

if you use GetType() you get the ID of the plugin.

try this:

  
     Atom* link=((Atom* )linker1->GetLink(doc));  
     if (link->IsInstanceOf(Mplugin)) GePrint("I am a 3d-shader");  

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

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.
Best
Samir