kpp files are png files, so any tool that can change the TEXT segment should work. The brush properties are XML, so parsing that is easy. I think you should be able to use the code from Brush Fixer for brushes created in Krita 5.1 beta 1 as a starting point – it loads the preset as a QImage, uses QImage::text to get the text segment, manipulates it, then sets the text back and saves the file.
1 Like