Set Mouse Position


I’ve recently started playing a bit with an idea I would like to implement in Blender. But I’ve stumbled on to a problem.

I’m trying to use Python scripting to set the position of the mouse cursor to the selected object in the scene. However there doesn’t seem to be an API to do so (I’m not using BGE). I’ve considered are using platform specific libraries, but, at least for my platform, Blender doesn’t come with those libraries (for example to implement this using objc module).

In short:

  • Is there a Blender Python API to set mouse position?
  • Is there a cross-platform way to set mouse position using Python thats shipped with Blender?