PARAMS namespace

Parameter dialogs and live parameter panels.

Symbols in this namespace: 21

SymbolKindCategoryDescription
PARAMS.ADD_BOOLCommandParameter editor commandsAdds a checkbox bound to an already-defined script variable.
PARAMS.ADD_COLORCommandParameter editor commandsAdds a color selector bound to an already-defined string variable such as #00ff00.
PARAMS.ADD_COMBOCommandParameter editor commandsAdds a combo box bound to an already-defined script variable. String variables receive the selected text; numeric variables receive the selected index.
PARAMS.ADD_DIRCommandParameter editor commandsAdds a directory selector bound to an already-defined string variable.
PARAMS.ADD_DOUBLECommandParameter editor commandsAdds a double spin box bound to an already-defined script variable. The variable name is passed without quotes.
PARAMS.ADD_FILECommandParameter editor commandsAdds an open-file path selector bound to an already-defined string variable.
PARAMS.ADD_INTCommandParameter editor commandsAdds an integer spin box bound to an already-defined script variable.
PARAMS.ADD_SAVEFILECommandParameter editor commandsAdds a save-file path selector bound to an already-defined string variable.
PARAMS.ADD_STRINGCommandParameter editor commandsAdds a line edit bound to an already-defined script variable.
PARAMS.CLEAR_DIRTYCommandParameter editor commandsClears the dirty flag of a LIVE ParamsEditor panel.
PARAMS.CLOSECommandParameter editor commandsCloses and destroys a ParamsEditor panel.
PARAMS.CREATEFunctionParameter editor functionsCreates a ParamsEditor panel and returns a numeric handle. Mode is DIALOG by default or LIVE for a non-modal panel.
PARAMS.DIRTYFunctionParameter editor functionsTRUE when the user has modified at least one widget since the last PARAMS.CLEAR_DIRTY.
PARAMS.EXECFunctionParameter editor functionsRuns the panel as a modal dialog. Variables are updated only if OK is pressed; the dialog session is destroyed on exit.
PARAMS.HELPCommandParameter editor commandsAdds or replaces the ParamsEditor Help tab with HTML text.
PARAMS.IS_OPENFunctionParameter editor functionsTRUE while a LIVE ParamsEditor window is visible.
PARAMS.LOADCommandParameter editor commandsLoads widget values from a ParamsEditor XML file.
PARAMS.SAVECommandParameter editor commandsSaves widget values to a ParamsEditor XML file.
PARAMS.SHOWCommandParameter editor commandsShows a LIVE ParamsEditor panel as a non-modal always-on-top window.
PARAMS.SYNCCommandParameter editor commandsCopies current LIVE widget values back into the bound script variables.
PARAMS.TABFunctionParameter editor functionsAdds a tab to a ParamsEditor panel and returns its zero-based index.

PARAMS.ADD_BOOL

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_BOOL handle, tab, variable, label [, help]

Adds a checkbox bound to an already-defined script variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_BOOL

PARAMS.ADD_COLOR

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_COLOR handle, tab, variable, label [, help]

Adds a color selector bound to an already-defined string variable such as #00ff00.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_COLOR

PARAMS.ADD_COMBO

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_COMBO handle, tab, variable, label, optionsText [, help]

Adds a combo box bound to an already-defined script variable. String variables receive the selected text; numeric variables receive the selected index.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

method = "GAUSSIAN"\nPARAMS.ADD_COMBO pe, tab, method, "Metodo", "GAUSSIAN|MEDIAN|BILATERAL"

PARAMS.ADD_DIR

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_DIR handle, tab, variable, label [, help]

Adds a directory selector bound to an already-defined string variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_DIR

PARAMS.ADD_DOUBLE

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_DOUBLE handle, tab, variable, label, min, max, step [, help]

Adds a double spin box bound to an already-defined script variable. The variable name is passed without quotes.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

sigma = 1.5
PARAMS.ADD_DOUBLE pe, tab, sigma, "Sigma", 0.1, 20.0, 0.1

PARAMS.ADD_FILE

STATEMENTPARAMSGUI / INTERACTIVEFILE I/O
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_FILE handle, tab, variable, label [, help]

Adds an open-file path selector bound to an already-defined string variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_FILE

PARAMS.ADD_INT

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_INT handle, tab, variable, label, min, max, step [, help]

Adds an integer spin box bound to an already-defined script variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_INT

PARAMS.ADD_SAVEFILE

STATEMENTPARAMSGUI / INTERACTIVEFILE I/O
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_SAVEFILE handle, tab, variable, label [, help]

Adds a save-file path selector bound to an already-defined string variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_SAVEFILE

PARAMS.ADD_STRING

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.ADD_STRING handle, tab, variable, label [, help]

Adds a line edit bound to an already-defined script variable.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
helpOptional help text shown by the parameter editor.

Minimal example

PARAMS.ADD_STRING

PARAMS.CLEAR_DIRTY

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.CLEAR_DIRTY handle

Clears the dirty flag of a LIVE ParamsEditor panel.

Minimal example

PARAMS.CLEAR_DIRTY

PARAMS.CLOSE

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.CLOSE handle

Closes and destroys a ParamsEditor panel.

Minimal example

PARAMS.CLOSE

PARAMS.CREATE

FUNCTIONPARAMSGUI / INTERACTIVE
Kind: Function   Category: Parameter editor functions   Namespace: PARAMS

PARAMS.CREATE(title [, mode])

Creates a ParamsEditor panel and returns a numeric handle. Mode is DIALOG by default or LIVE for a non-modal panel.

Optional parameters

Parameters enclosed in [...] may be omitted. Nested brackets mean that the later parameter is available only when the previous optional level is also supplied.

ParameterMeaning
modeMode selector; accepted values are described in the command text.

Minimal example

pe = PARAMS.CREATE("Filtro", "LIVE")

PARAMS.DIRTY

FUNCTIONPARAMSGUI / INTERACTIVE
Kind: Function   Category: Parameter editor functions   Namespace: PARAMS

PARAMS.DIRTY(handle)

TRUE when the user has modified at least one widget since the last PARAMS.CLEAR_DIRTY.

Minimal example

value = PARAMS.DIRTY(handle)

PARAMS.EXEC

FUNCTIONPARAMSGUI / INTERACTIVE
Kind: Function   Category: Parameter editor functions   Namespace: PARAMS

PARAMS.EXEC(handle)

Runs the panel as a modal dialog. Variables are updated only if OK is pressed; the dialog session is destroyed on exit.

Minimal example

IF PARAMS.EXEC(pe) THEN
    PRINT sigma
ENDIF

PARAMS.HELP

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.HELP handle, htmlText

Adds or replaces the ParamsEditor Help tab with HTML text.

Minimal example

PARAMS.HELP

PARAMS.IS_OPEN

FUNCTIONPARAMSGUI / INTERACTIVE
Kind: Function   Category: Parameter editor functions   Namespace: PARAMS

PARAMS.IS_OPEN(handle)

TRUE while a LIVE ParamsEditor window is visible.

Minimal example

value = PARAMS.IS_OPEN(handle)

PARAMS.LOAD

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.LOAD handle, path

Loads widget values from a ParamsEditor XML file.

Minimal example

PARAMS.LOAD

PARAMS.SAVE

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.SAVE handle, path

Saves widget values to a ParamsEditor XML file.

Minimal example

PARAMS.SAVE

PARAMS.SHOW

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.SHOW handle

Shows a LIVE ParamsEditor panel as a non-modal always-on-top window.

Minimal example

PARAMS.SHOW

PARAMS.SYNC

STATEMENTPARAMSGUI / INTERACTIVE
Kind: Command   Category: Parameter editor commands   Namespace: PARAMS

PARAMS.SYNC handle

Copies current LIVE widget values back into the bound script variables.

Minimal example

PARAMS.SYNC

PARAMS.TAB

FUNCTIONPARAMSGUI / INTERACTIVE
Kind: Function   Category: Parameter editor functions   Namespace: PARAMS

PARAMS.TAB(handle, title)

Adds a tab to a ParamsEditor panel and returns its zero-based index.

Minimal example

tab = PARAMS.TAB(pe, "Base")