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

    Dynamic Shader Links

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 297 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 27/05/2007 at 16:27, xxxxxxxx wrote:

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

      ---------
      I'm trying to add shaderlink fields to a description in GetDDescription. I've tried to add a DTYPE_BASELINKLIST and set DESC_SHADERLINKFLAG to TRUE, but it shows up as a standard link box, not a SHADERLINK.

      Any ideas or hints would be most appreciated.

      -Chris

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

        On 08/03/2017 at 14:38, xxxxxxxx wrote:

        Since this was the only topic I could find that described my excact problem, I thought I'd post the solution
        I found, here (10 years later, lol). You have to set the custom GUI to CUSTOMGUI_TEXBOX.

        #include <customgui_texbox.h>
          
        //...
        bc->SetBool(DESC_CUSTOMGUI, CUSTOMGUI_TEXBOX);
        bc->SetBool(DESC_SHADERLINKFLAG, true);
        

        Thanks to Remo in this thread.

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

          On 09/03/2017 at 01:39, xxxxxxxx wrote:

          Hello,

          you can also find an example on this in the Description Settings Manual.

          best wishes,
          Sebastian

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