# Access to info and modify brush in krita api for plugins

**URL:** <https://krita-artists.org/t/access-to-info-and-modify-brush-in-krita-api-for-plugins/85368>\
**Category:** Feature Requests\
**Tags:** for-brush-engine, for-scripting\
**Created:** [February 24, 2024, 9:13pm UTC](https://krita-artists.org/t/access-to-info-and-modify-brush-in-krita-api-for-plugins/85368 "2024-02-24T21:13:02Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Takiro](https://krita-artists.org/user_avatar/krita-artists.org/takiro/32/209381_2.png) [@Takiro](https://krita-artists.org/u/Takiro)\
**Post date:** [February 25, 2024, 9:15am UTC](https://krita-artists.org/t/access-to-info-and-modify-brush-in-krita-api-for-plugins/85368/4 "2024-02-25T09:15:07Z")

</div>

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

> [@\[proof-of-concept\] Scriptable Brush](https://krita-artists.org/t/proof-of-concept-scriptable-brush/46634):
>
> [[Lua Scripted Brush for Krita] ](https://www.youtube.com/watch?v=tsJpEM-9au8)Explanation This is a quick experiment that I did for fun. It demonstrates a way of making scripptable brushes via Lua. In the video I played with drawing speed and drawing angle. I’d really wanted to use pressure, but I don’t have my tablet with my dev environement frowning I chose Lua because it’s simpler to embed in C/C++. I hacked the pixel engine by adding a new “dynamic sensor”, which exposes other sensor values and run a lua script to calcu…

> [@Node-based brush designer (including mockups)](https://krita-artists.org/t/node-based-brush-designer-including-mockups/15816):
>
> Krita has been wonderful for me in the year and a half or so I’ve been using it semi-professionally, but one of the issues I have with the software is the Brush Editor. Even though I’ve made a few brushes myself, and modified other people’s for my needs, it’s hard to get a good idea about how a brush works at a glance and it’s hard to know where to start when I have an idea for a new brush in mind. I think that offering a node-based editor for brush designing and editing would not only be usef…

---

_[View the full topic](https://krita-artists.org/t/access-to-info-and-modify-brush-in-krita-api-for-plugins/85368)._
