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

    Layer + Shader

    SDK Help
    0
    1
    119
    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 18/08/2004 at 03:17, xxxxxxxx wrote:

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

      ---------
      Hi,
      I just want to add a LayerShader with some others shaders in it.
      Like :
      // Create shader
       PluginShader *sh = PluginShader::Alloc(Xlayer);
       PluginShader *sh2 = PluginShader::Alloc(Xfilter);
       PluginShader *sh3 = PluginShader::Alloc(Xlumas);
      Then I try to insert all that, I try many differents way. but no result. 😞
      My last test is :
      sh->InsertShader(sh3);
      sh->InsertShader(sh2);
       BaseContainer bc = ch->GetData();
       bc.SetData(BASECHANNEL_SHADERID, sh->GetData());
       ch->SetData(bc);
      So the shader is on the Channel, but not is child ...
      If any one know a very simple way to to this, will be nice
      Michel

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