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

    Best guess at active user selection

    Cinema 4D SDK
    c++ 2023
    3
    4
    617
    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.
    • M
      muckymouse
      last edited by

      Hey all thanks for taking the time to read my post.

      I'm making a renaming tool and we'd like it to change context based on the user's last selection. The three modes would be: object manager, takes manager, material manager.

      Ideally I'd like the mode to change if the user is hovering over one of these three managers but from what I've been told that isn't possible. So my thought for now is to poll c4d for changes in selections at regular intervals. Is this the best way to go about something like this?

      Thanks again for reading,
      Cheers,
      Andy

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

        Apologies for the terrible title.

        DunhouD 1 Reply Last reply Reply Quote 0
        • DunhouD
          Dunhou @muckymouse
          last edited by

          Hi @muckymouse ,

          See wonderful answer from @ferdinand : Can I get active things order with python?

          Hope this can helps.

          Cheers~
          DunHou

          https://boghma.com
          https://github.com/DunHouGo

          i_mazlovI 1 Reply Last reply Reply Quote 0
          • i_mazlovI
            i_mazlov @Dunhou
            last edited by

            Hi Andy,

            Welcome to the Maxon developers forum and its community, it is great to have you with us!

            Getting Started

            Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

            • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
            • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
            • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

            It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions.

            About your First Question

            Yes, unfortunately it's not possible to catch the "hover" event as there's no such event. So yes, you're right, you can somehow emulate the desired behavior.

            The suggestion for that would be to work with Core Messages, namely do your stuff (i.e. change the mode) as a reaction on catching the EVMSG_CHANGE message.

            For checking the selections part, you can refer to the DunHou's pointer to the Ferdinand's script.

            Cheers,
            Ilia

            MAXON SDK Specialist
            developers.maxon.net

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