I had been very interested in getting into modifying my own brushes using Python, and creating a plugin that others could use, for example to add new functions to the brush engines. But I don’t know if it’s me that’s wrong but I can’t find any way in which I can access the current size of the brush, or its color, for example by reading the krita documentation. So I wanted to make this proposal and I would love to see your comments and opinions. Greetings
Adding new functions to the brush engines with python isn’t possible, they are hardcoded into the core of Krita (more or less). Extending or changing the engine would need changing that core in C++.
thanks for your answer! And then how viable would it be to add an option for plugins in c++?, or in what way are those two languages mixed in krita?
You would have to create a completely new brush engine. The way the current ones are implemented don’t allow for any modification at all. Every step, every input sensor, all processing is done in a specific set way and order with no way to inject code and tell the engine to do something different instead.
A more loosely and modular engine was proposed for a node based brush engine and an engine designed that way could easily handle plugs-ins for brushes. That would be a new engine altogether not necessarily a replacement for the existing ones.
Here are a few existing proposals, you can find more with the search
:0 thanks for the info, this looks interesting, gonna check it out