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

    Detect single click

    Cinema 4D SDK
    python
    2
    4
    785
    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.
    • merkvilsonM
      merkvilson
      last edited by

      Hello PluginCafe! 🙂

      As I know c4d.MSG_EDIT detects double click, but what's the best way of detecting a single click on the object's icon in object manager? 😁

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

        Hi merkvilson, thanks for reaching out us.

        With regard to your question, there's unfortunately no means to detect single click in the Object Manager via current API.

        Best, Riccardo

        1 Reply Last reply Reply Quote 1
        • merkvilsonM
          merkvilson
          last edited by

          Ok. Thanks for the info 🙂

          regarding c4d.MSG_EDIT

          • Allows to perform some action when element is edited, e.g. if the user edits an object double-clicking it in the Object Manager.

          seems like double-clicking detection is just one of its features. what else can it do? what are other examples?

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

            Hi merkvilson, thanks for following up.

            With regard to the MSG_EDIT it's actually dispatched just when double-click event is executed by the user.
            What is then executed depends on what is implemented in the NodeData::Message() method when the MSG_EDIT message is received in a certain NodeData.
            An example on how the double-click event in the ObjectManager works can be found via the Physical Sky, where, double clicking on the icon in the OM, just opens the Sky Manager UI.

            Best, Riccardo

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