Shader in tag description



  • On 13/04/2016 at 08:06, xxxxxxxx wrote:

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

    ---------
    I need to allow user to select shader in description of TagData plugin. Right now, I have a simple

    SHADERLINK MY_SHADER_LINK_ID { }
    

    in my tmytag.res, nothing special in the code. When this is used from AM with only tag selected, everything works as expected, the problem is when I select object (camera in my case) with this tag attached and try to load texture from tag's tab - it won't load anything and, when started with attached debugger, C4D will break debugger with "CRITICAL: Stop" message (file common\basecontainer.cpp(444)).

    Is this a bug? Or we shouldn't use SHADERLINK in tags?



  • On 14/04/2016 at 06:36, xxxxxxxx wrote:

    Hello,

    indeed, this seems to be a bug. Thanks for reporting this, a bug report was filed.

    The only way to prevent a tag from being displayed with the host object is to make the tag invisible (by not setting TAG_VISIBLE) or to allow multiple instances (by setting TAG_MULTIPLE).

    Best wishes,
    Sebastian


Log in to reply