create_layer
Create paint, vector, group, fill, filter, clone, or file layers and masks in Krita; the new layer becomes active and can be placed in a group or above a sibling.
Instructions
Create a layer or mask; it becomes the active layer. type:
paintlayer (fill = optional solid colour), vectorlayer, grouplayer,
filllayer (fill = colour, or pattern = pattern resource name) - a non-destructive colour/pattern layer,
filterlayer (filter + filter_params) - non-destructive adjustment of everything below,
clonelayer (source = layer to mirror live),
filelayer (path = image in the workspace, kept as a live link),
filllayer with generator = seexpr | screentone | gradient | multigrid and generator_config, e.g.
seexpr {"script": "$c = noise(10*$u, 10*$v); [$c, $c*0.8, 1-$c]"} (procedural textures),
screentone {"pattern": 0, "shape": 0, "frequency_x": 30, "rotation": 45,
"foreground_color": "#000000", "background_color": "#ffffff"} (manga tones),
gradient {"shape": "radial", "start_position_x": 50, "start_position_y": 50,
"end_position_x": 100, "end_position_y": 50} (uses the user's fg/bg colours),
filtermask (filter + filter_params) / transparencymask - attached to parent (default: active layer),
limited to the current selection if there is one.
parent = group layer id/name (or the layer a mask attaches to); above = sibling to stack over.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| name | No | Layer | |
| path | No | ||
| type | No | paintlayer | |
| above | No | ||
| filter | No | ||
| parent | No | ||
| source | No | ||
| pattern | No | ||
| generator | No | ||
| filter_params | No | ||
| generator_config | No |