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

    Detect Keyboard in a Shader Dialog.

    Cinema 4D SDK
    2
    3
    507
    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.
    • RenatoTR
      RenatoT
      last edited by

      Hi All,

      i need to detect a key pressed while i'm inside my custom shader gui.

      I also need to know if is possible to press a custom bitmap button (in the shader description) and prevent that the shader get dirty and prevent the refresh of this shader/material.

      Thanks in advance and Merry Christmas to all 🙂
      Renato T.

      1 Reply Last reply Reply Quote 0
      • r_giganteR
        r_gigante
        last edited by

        HI Renato, thanks for reaching out us.

        With regard to the first part of the question, you can indeed implement the iCustomGUI::Message() to intercept keyboard interaction and act accordingly.

        With regard to the second part about avoiding the increase of the dirty counter on pressing a custom bitmap button, I don't think it's actually possible.

        Cheers, Riccardo

        1 Reply Last reply Reply Quote 1
        • RenatoTR
          RenatoT
          last edited by

          Hi Riccardo,

          many thanks for the infos 🙂

          Cheers
          Renato

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