Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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

    Can't apply shaders to a CUSTOMGUI_TEXBOX in iCustomGui

    Cinema 4D SDK
    c++ r21
    2
    3
    513
    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.
    • O
      Ogers
      last edited by

      Hello,
      I have used a texbox customGui inside my iCustomGui, but for some reasons, it seems that I can not apply a shader to it.
      The attribute is shown on the UI but does not seem to be functional.

      On my iCustomGui::CreateLayout(), I have added it together with some other attributes, but this is the only one that is not functional.

      TexBoxGui* list = (TexBoxGui*)AddCustomGui(COLOR_ID + i, CUSTOMGUI_TEXBOX, String(), BFH_SCALEFIT, 0, 0, settings);
      

      Is there something I am missing?
      Cheers,
      Ogers.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Hi, this is unfortunately not possible to add a CUSTOMGUI_TEXBOX in a GeDialog.

        Technically this is possible and you will be able to use it as a Link field. However, the creation of material will not work since it requires a Description to work.

        So the only workaround would be to create a usual LinkBox and create a button that will mimic the popup button.
        Not the best, but this is how it is.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        1 Reply Last reply Reply Quote 0
        • O
          Ogers
          last edited by

          I see, thank you for the answer.

          Cheers,
          Ogers.

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