Plugin Marketplace
Sign in

Documentation

Lua API: every module and type
Lua API · Class

ConfigBox

A value the API hands your plugin; call its methods to read or change it.

API version1.0.0manifest.json"project.plugin": "1.0.0"From PrusaSlicer3.0.0-alpha13Editor stubsDownload .zip

Where it is used

Methods

#value

method
configBox:value(name: string) → (table|boolean|string|integer|number)

Retrieves a preset/configuration value by name.

Parameters
namestring
The config key.
Returns
(table|boolean|string|integer|number)value
—

#set

method
configBox:set(name: string, value: any)

Sets a preset/configuration value by name.

Parameters
namestring
The config key.
valueany
The value to set.
Returns

Nothing.

    ↑↓ move↵ openAPI 1.0.0