Inserting Custom Shader Material



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

    On 20/03/2010 at 08:47, xxxxxxxx wrote:

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

    ---------
    If I have created my own MaterialData plugin,  how would I then insert that material in to a scene?  I mean within a plugin of course not manually in C4D.

    Thanks,

    ~Shawn



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

    On 22/03/2010 at 05:51, xxxxxxxx wrote:

      
    PluginMaterial *mat = NULL;  
    mat = PluginMaterial::Alloc(PLUGINID);  
    if (!mat) return FALSE;  
      
    doc->Insertmaterial(mat, NULL, FALSE);  
    

    cheers,
    Matthias



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

    On 22/03/2010 at 07:15, xxxxxxxx wrote:

    Great thanks Matthias.

    :) Shawn


Log in to reply