Hello @bentraje,
Thank you for reaching out to us. Sure, this is possible, but the broadness of your question is in violation of our scope of support rule:
If necessary, we will provide code examples, but we will not provide full solutions or design applications.
There are three million and one ways to do this, and you must design your application yourself. A very straight forward implementation could be:
- Every time
MyCommandData.Execute
is being invoked read and write an incremented usage count, with one of these options:
- the builtin function and module
open()
and json
,
- the HyperFile format of Cinema 4D,
- the function WritePluginInfo,
- or, if you do not want to do it locally, you could also send a request to a web service, as for example a REST service. Python's builtin
urllib
should be up to that task, including handling the response.
Please understand that we cannot provide support for subjects that are not part of our APIs, e.g., how to set up a (REST) web service, so that your plugin can send commands to it.
Cheers,
Ferdinand