dk8
August 17, 2025, 1:03am
5
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.
I am trying to write code to monitor the cursor position on krita.
My ultimate goal is to write a script that reacts when the cursor enters a specific area of the Krita window.
from krita import *
from PyQt5 import QtWidgets, QtGui, QtCore
class Window(QWidget):
def __init__(self,**kwargs):
super().__init__(**kwargs)
self.installEventFilter(self)
self.label = QLabel()
self.label.setText("none")
self.grid = QGridLayout()
self.grid.addWidge…
Hello,
Is there a way to count the number of strokes per layer from a Python/Plugin script? Also is it possible to know for a given stroke what kind of a tool has produced it?
Thank you in advance!
Best regards,
Apostol Bakalov (Apo)