
In Krita, you can write scripts in Ruby or Python (the availability of the interpreters might depend on what your distributions or the administrator of your machine did install). Here you will find a description of the scripting API.
Some examples are distributed with Krita, and you might find them in
/usr/share/apps/krita/scripts (or
/opt/kde/share/apps/krita/scripts).
KritaDocument returns a
Document object
KritaScript returns a
ScriptProgress object
You can retrieve an object using the get function of the
Krosskritacore module, in Ruby you will have to write something like that:
doc = Krosskritacore::get("KritaDocument")
script = Krosskritacore::get("KritaScript")
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team