I’ve recently been investigating event simulation from python for potential use with Grease Pencil tools. It’s not a full test yet but the principle works.
Running Blender with --enable-event-simulate
makes it possible to fire input events from python. The easy_keys
module is a utility to set up various things to help with that. It’s used inside a larger ui_simulate framework, but i wasn’t happy with the structure it forces scripts to use (everything goes through run.py
), i’m using a standalone script.