ap_set_config
Change ArmorPaint application preferences by setting writable fields like theme, keymap, window size, layer resolution, and undo steps. Use it to adjust default resolution for new layers without resizing existing ones.
Instructions
Change application preferences. Only the listed fields are writable; anything else in ArmorPaint's preferences is not exposed to plugins. layer_res is the DEFAULT resolution for new layers — changing it does not resize existing ones.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| theme | No | Theme name. | |
| keymap | No | Keymap preset name. | |
| window_h | No | Window height in pixels. | |
| window_w | No | Window width in pixels. | |
| workflow | No | Workflow index. | |
| layer_res | No | Default layer resolution for NEW layers (e.g. 2048). | |
| workspace | No | Workspace index. | |
| brush_live | No | Live brush preview. | |
| camera_fov | No | Camera field of view in radians. | |
| undo_steps | No | Undo history depth. | |
| window_scale | No | UI scale factor, e.g. 1.0 or 1.5. | |
| material_live | No | Live material preview. | |
| node_previews | No | Node thumbnails in the node editor. | |
| rp_supersample | No | Render supersampling factor, e.g. 1.0 or 2.0. |