I’d like to be able to do something in a plugin when the user draws something, moves the mouse/pen, or saves their image, however I am very new to the plugin api and am having a hard time trying to figure out how to set it up.
The current API has currently basically no events exposed you can slot your functions into. Your only choice is to monitor all inputs or the canvas, looking for changes constantly.
Yup, it may not be currently possible at all.
Non-canvas interface (like dockers, dialog windows etc.) emit events of mouse clicking and cursor movement, that you could intercept with the event hooks.
Krita canvas on the other hand is something different, and it does not signalize things like that at all.
At least that’s my understanding from the tests I’ve been doing myself.
wait is there not even a way to see whether the mouse is up or down/where the mouse is?
i may have to give up this project :\(
When creating plugins, you can use not only Krita’s plugin API but also pyQt’s API.
Referring to topics related to this may give you some hints on how to achieve what you want to do.
thank you so much!!!