Hello @ferdinand ,
this example was perfect for me, thank you very much!
Hello @ferdinand, thanks for the quick reply and sorry for the lack of information.
I cannot add tags to the original post but I am using windows as the operating system.
An example of the GUI used by the already running plugin could be somewhat similar to this (I'm working on a simpler GUI but the back-end will be the same):
As you can see, when I press "add model" I get the global coordinates of the selected cube and printed in the GUI. However I would like those values (Global x, Global y and Global Z) to be updated when I drag the cube around without the need of refreshing it manually.
I hope this clarifies the topic.
I am trying to figure out if it is possible to retrieve the position of an object while you are dragging it around with the mouse. This would mean to pass the message with the instant position to an already running plugin to update dinamically the GUI.
For the moment I thought about getting the position with a button after the mouse movement but is very annoying for the final user.
I looked for posts regarding similar topics and I thought it could be a case for threadding or using a python tag, but I am pretty much lost here.
Any help would be appreciated.
first of all, thanks for the quick response. You gave me a great clue with the compiled dll version. C4D R23 is compatible with scipy 1.4.0 so the solution was to downgrade it.
I have recently bought a C4D R23 license to overcome difficulties regarding the installation of dependent libraries in previous versions of C4D (<=R19), specially for scipy. I followed the classic steps to install both numpy and scipy with pip. You can see this here:
C:\Program Files\Maxon Cinema 4D R23>c4dpy.exe -m pip list
However, when I try to import both libraries in C4D for scripting and plugins, numpy works but scipy doesn't. You can see that here:
The translation of it is "The specified module cannot be found".
This error replicates when trying to do the same from the command prompt of c4dpy.exe
Any help would be extremely appreciated,