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

    Dynamic description of SHADERLINK

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 331 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 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

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

        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.

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

          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

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