Krita support scripts (in python and ruby) since 1.5 thanks to kross, but one things that was really missing (beside performance) was tighter integration with Krita, I mean, in 1.5/1.6, there is a docker with a list of scripts, and you click and it does ‘something’, but what I want is the ability to write filters, tools or anything else like in C++ but in Ruby (or in python if you really have to). The anything else part is mostly done if you use some Qt4 bindings, for instance it’s already possible to write a new docker in Ruby/Python and it will behave like a C++ plugin (I should try to write a color selector in ruby just for the fun of it). And now, it’s possible to write a filter which will appear like any other filter in Krita’s filter menu.
def scriptProcess( src, srcTopLeft, dst, dstTopLeft, size, config )
for i in 0...size
itSrc = src.createHLineConstIterator( srcTopLeft, srcTopLeft + i, size )
itDst = dst.createHLineIterator( dstTopLeft, dstTopLeft + i, size )
while (not itDst.isDone())
The only real drawback of this is the speed :/ But I am know we still have some room for improvements in the bindings, so not everything is lost, and if Krita provides enough high level primitives it shouldn’t be much of a problem, and then if someone likes to apply first a blur then a sharpness filter (in fact, that’s already possible since 1.5/1.6 but in a less cool way), he could create a filter script, and he wouldn’t notice the speed difference.
Now I need to do some polishing, and also to allow to get script tools.