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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Shader in tag description

    SDK Help
    0
    2
    260
    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

      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?

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

        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

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