Dynamic description of SHADERLINK
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/01/2009 at 08:25, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 10+
Platform: Windows ; Mac OSX ;
Language(s) : C++ ;---------
Hi,isn't it possible to create a SHADERLINK resource dynamically within GetDDescription()? I can't find an appropriate DTYPE.
Maybe there is a way to build it from scratch?
I need to create a variable set of shaderlinks within my channel shader.
thx
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/01/2009 at 11:20, xxxxxxxx wrote:
got it.
>
\> BaseContainer bc = GetCustomDataTypeDefault(DTYPE_BASELISTLINK); \> bc.SetLong(DESC_CUSTOMGUI, CUSTOMGUI_TEXBOX); \> ... \>
Can't understand why CUSTOMGUI_TEXBOX isn't listed in docs under DESC_Items/DESC_CUSTOMGUI:
LONG DESC_CUSTOMGUI
The ID of the GUI for this element. Either a custom ID or one of:CUSTOMGUI_REAL Real edit field.
CUSTOMGUI_REALSLIDER Real edit field with slider.
CUSTOMGUI_REALSLIDERONLY Real slider only.
CUSTOMGUI_VECTOR Vector.
CUSTOMGUI_STRING String field.
CUSTOMGUI_STRINGMULTI Multiple line string field.
CUSTOMGUI_STATICTEXT Static text field.
CUSTOMGUI_LONG Long edit field.
CUSTOMGUI_LONGSLIDER Long edit field with slider.
CUSTOMGUI_BOOL Checkbox.
CUSTOMGUI_TIME Time edit field.
CUSTOMGUI_COLOR Color chooser.
CUSTOMGUI_MATRIX Matrix edit fields.
CUSTOMGUI_BUTTON Button.
CUSTOMGUI_SEPARATOR Separator.
CUSTOMGUI_SUBDESCRIPTION Subdescription. -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/01/2009 at 01:14, xxxxxxxx wrote:
Quote: _Can't understand why CUSTOMGUI_TEXBOX isn't listed in docs under DESC_Items/DESC_CUSTOMGUI
>
> * * *
_
Because the documentation is by no means complete nor bug free. Thanks for pointing it out. I will fix this for the next update.
cheers,
Matthias