Python - watch cursor and place object

python

#1

Hi,

I have a question for the following procedure. I am also not sure if it is possible in python.

  1. Watch position of cursor,
  2. Watch angle of the line that the cursor covers,
  3. Move object to cursor (how the cursor moves around the object can follow the cursor) (Dynamic draw?)
  4. Align object to line (and Dynamic draw?)
  5. Place object by a click.

I know that Event watcher exists for C# but all together is even more foggy.


(Dale Fugier) #2

Hi @onrender,

It sounds like you need a custom GetPoint class. Here is an example:

– Dale