Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Bhodinut 3D Shader *Material*

    SDK Help
    0
    3
    361
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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");  
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post