Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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
    • Recent
    • Tags
    • Users
    • Login

    PluginShader Xlayer

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 287 Views
    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 Offline
      Helper
      last edited by

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

      On 09/10/2009 at 15:17, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   10.5 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello

      I want to create PluginShader that is contained in LayerShaderLayer class.

      But, I couldn't do it.

      Could you give me an example?
      My code not working. Child is not created.

      > \> mat = BaseMaterial::Alloc(Mmaterial); \> if (!mat) return FALSE; \> doc->InsertMaterial(mat, NULL, FALSE); \> \> PluginShader\* shd = PluginShader::Alloc(Xlayer); \> if(!shd) return FALSE; \> PluginShader \*shbitmap = PluginShader::Alloc(Xbitmap); \> if(!shbitmap) return FALSE; \> PluginShader \*shcheck = PluginShader::Alloc(Xcheckerboard); \> if(!shcheck) return FALSE; \> \> shbitmap->GetDataInstance()->SetFilename(BITMAPSHADER_FILENAME, Filename("tex") + memshaderplus[k].texturename); \> shd->InsertShader(shcheck, NULL); \> shd->InsertShader(shbitmap, NULL); \> \> filemater->GetDataInstance()->SetLink(MATERIAL_COLOR_SHADER, shd); \> filemater->InsertShader(shd, NULL); \> \>

      thanks
      dinnye

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

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

        On 09/10/2009 at 18:29, xxxxxxxx wrote:

        This is currently not possible.

        insert shader under layer shader

        cheers,
        Matthias

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

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

          On 09/10/2009 at 21:36, xxxxxxxx wrote:

          thanks

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