Best guess at active user selection
-
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 -
Apologies for the terrible title.
-
Hi @muckymouse ,
See wonderful answer from @ferdinand : Can I get active things order with python?
Hope this can helps.
Cheers~
DunHou -
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