Hello everyone! hope you guys are doing fine.
I am here to ask on some advice, help, and guidance.
In short, i would like to be able to create and modify layers of diferent types and its properties using custom scripts and the “Ten Scripts” plug in to speed up my workflow.
Now, a little background about my workflow:
I have a way of shading that is quite flexible and fun to work with for myself, unfortunately the downside is that it is overcomplicated and requires a specific layer set up that i have to manually make (example below)
Is this too much for such a simple task? yes, absolutely, but i really enjoy shading once i set everything up.
(I am aware this is a weird workflow, i am willing to explain and share my process and my reasons to do things this way, but i’ll leave that to a different post in another time)
Now, what i want to do is simply
- create different types of layers (specifically paint, fill and filter) and put them in groups
- be able to set specific parameters to each layer; opacity, fill type/color, filter layer type and presets
- have these scripts on the Ten Scripts plug in to use them quickly
And i have a somewhat clear idea on what the basic procedure i want to achieve is. My only issue is that i’m struggling to understand how to make the script itself.
I have a very basic understanding of programing (no need to explain the basics of python, basic things like variables, functions, loops, that type of thing)
i took a look at both Krita’s documentation as well as the Krita Scripting School. They are useful for sure but i still have a lot of confusion due to my inexperience with doing anything code related.
But with my limited knowledge i think i was able to figure out how to create the layers and modify some aspects like the name and opacity of a layer. What i need to figure out is a way to change a fill layer type (between color or pattern) and change its color if the fill type is set to color. And for filter layers i need to know if i can tell the script to apply a preset.
what i want to achieve specifically is this (this is what i already do manually)
- Make a group layer on top of whatever layer i have selected, this will be the “lighting” group and will be set to “color dodge” blending mode
- inside of this group there will be a fill layer set to pure black, this is just the background, it will be invisible since the group is in color dodge mode but it will be necessary for colors to mix properly
- above the background layer there will be another group named something like “DRAW HERE” inside there will be only paint layers, more specifically i only need one in the script
- above this “draw here” group, there will be a filter layer set as a gradient map filter, to this, all i want is to set a specific preset i have already made.
- this is optional but at the end i want the selected layer to be the one paint layer inside the “draw here” group
Some clarifying before i go:
- I am aware krita has the Task Sets Docker, this is not useful to me because i already do these actions using shortcuts
- i know someone has made a plug in that automates actions like in photoshop, which im sure is great but it is a payed plug in, and right now i am unable to pay for it, i am considering getting it at some point for sure, but not right now
- i do want to learn to do scripts, not only for this but i find the skill useful, specially on krita.
- I only want to make this script for myself, not planning to do a perfectly optimized script, I simply want something that works, dont mind if its not the bestor fastest way of doing things
(I am doing all this explanation not to get someone to make this script it for me, but because i genuinely want to learn to do this myself, I apologize if this is a messy explanation, its a little late at the time i’m writing this and i’m feeling burned out from reading the documentation and trying to do this. I will try to explain further if needed once i feel more fresh)


