Dynamic Shader Links

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

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.

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