Script dialog
The ScriptDialog
class is used to create and control dialog windows when
running piano roll scripts.
ScriptDialog
Dialog that is shown when script is called
__init__
Initializes a new script dialog
Args:
title
(str
): Title of Windowdescription
(str
): Description shown on windo
AddInput
Adds a generic input control, rotary boolean
Args:
name
(str
): Name of controlvalue
(float
): Initial valuehint
(str
, optional): Text to display in hint panel
AddInputKnob
Adds a knob input control with float values
Args:
name
(str
): Name of controlvalue
(float
): Initial valuemin
(float
): Minimum valuemax
(float
): Maximum valuehint
(str
, optional): Text to display in hint panel
AddInputKnobInt
AddInputKnobInt(
name: str,
value: int,
min: int,
max: int,
reserved: int,
hint: str = "",
) -> None
Adds a knob input control with int values
Args:
name
(str
): Name of controlvalue
(int
): Initial valuemin
(int
): Minimum valuemax
(int
): Maximum valuereserved
(int
): Unusedhint
(str
, optional): Text to display in hint panel
AddInputCombo
Adds a combo box input control with list of strings
Args:
name
(str
): Name of controloptions
(list
): Options for selectionvalue
(int
): Index of initial optionhint
(str
, optional): Text to display in hint panel
AddInputText
Adds a text box input control with string value
Args:
name
(str
): Name of controlvalue
(str
): text to displayhint
(str
, optional): Text to display in hint panel
AddInputCheckbox
Adds a checkbox input control with string value
Args:
name
(str
): Name of controlvalue
(bool
): Initial valuehint
(str
, optional): Text to display in hint panel
AddInputSurface
Adds a control surface
Args:
name
(str
): Name of the control surface's preset file (without the.fst
extension)
GetInputValue
Retrieve the current value of the input with the specified name
Args:
name
(str
): name of control
Returns:
Union[str, int, float]
: current value of control