Layer types¶
All layer nodes can use next
tag, see
Creating blueprint > Nesting.
In the following list of layer types parameters are formatted as follows:
name (
type
,default if optional
) Description
Note
Setting add_to_position = -1
adds the layer to a recently defined
group.
image¶
Create new image. Needed for any layer creation.
size (
tuple
) Image dimensions in pixels notename (
str
,Card Assembler Image
) Image name
monochrome¶
Single color filled layer.
import_layer_load¶
Load new data image. The file has to be in the data folder. Filename is specified in the XML file. Name parameter is used in the XML file to reference the imported file. That’s why it’s not an optional parameter.
filename (
str
) See descriptionname (
str
) Name the data for future use by import_layer
import_layer¶
Copy layer from a data image.
group¶
Create new layer group. To fill next layers in, set theirs add_to_position
parameter to -1
.
text¶
Text layer.
text (
str
) Textfont (
str
) Font namefont_size (
int
) Font sizefont_scale (
float
,1
) Multiply font_sizeadd_to_position (
int
,0
) Position among layers (-1
for group)name (
str
, Gimp default =Text Layer
) Layer namecolor (
str
,#000000
) Text color in hex codesize (
tuple
, autosize) Layer dimensions in pixelsline_spacing (
float
,0
) Line separation changeletter_spacing (
float
,0
) Letters separation changejustification (
int
,0
) Either left (0
), right (1
), center (2
) or fill (3
)position (
tuple
,0, 0
)
select¶
New selection by percentage of image size.
mode (
str
,select
) Eitherselect
,select_invert
ordeselect
left (
float
,0
) Left edge position in percentage of the image sizeright (
float
,100
) Right edge position in percentage of the image sizetop (
float
,0
) Top edge position in percentage of the image sizebotton (
float
,100
) Bottom edge position in percentage of the image size
mask¶
Mask layer. Create a mask for the given layer from the given selection.
hide¶
Ignore command. Used for overrides, i.e. hiding a predefined (template) layer.