Preset.renamePreset

Renames a preset. If there is already a preset by the new_name it will be overwritten.

interface Preset
bool
renamePreset
(
string oldName
,
string newName
)

Parameters

oldName string

current preset name

newName string

new preset name

Return Value

Type: bool

true for success, false if e.g. there is no preset with old_name