Ui
Functions for managing the channel rack UI.
Examples
Open the plugin window for the selected channel.
isHighLighted
Returns True
when a red highlight rectangle is displayed on the channel
rack. This rectangle can be displayed using
ui.crDisplayRect()
.
These hints can be used to visually indicate on the channel rack where your script is mapping to.
Returns
bool
: whether highlight rectangle is visible.
Included since API version 1
showGraphEditor
showGraphEditor(temporary: bool, param: int, step: int, index: int, useGlobalIndex: bool = True) -> None
Show the graph editor for a step parameter on the channel at index
.
Args
-
temporary
(bool
): whether the editor should be temporary or stay open. -
param
(int
): step parameter, see the FL Studio manual -
step
(int
): step ???. -
index
(int
): index of channel. -
globalIndex
(int
, optional): whether index should be global (True
) or not (False
). Defaults toTrue
.
Included since API Version 1.
API Changes
- v20: add
useGlobalIndex
flag.
isGraphEditorVisible
Returns whether the graph editor is currently visible.
showEditor
Toggle whether the plugin window for the channel at index
is shown. The
value parameter can be used to control whether the editor is hidden or
shown.
Args
-
index
(int
): channel index. -
value
(int
): whether to hide (0
) or show (1
) the plugin window. Defaults to-1
(toggle). -
useGlobalIndex
(bool
, optional): whether to use the global channel index when
Included since API version 1.
API Changes
-
v3: Add
value
parameter. -
v33: add
useGlobalIndex
flag.
focusEditor
Focus the plugin window for the channel at index
.
Args
-
index
(int
): channel index. -
useGlobalIndex
(bool
, optional): whether to use the global channel index when
Included since API version 1.
API Changes
- v33: add
useGlobalIndex
flag.
showCSForm
Show the channel settings window (or plugin window for plugins) for channel
at index
.
This appears to perform the same action as channels.focusEditor()
.
Args
-
index
(int): channel index -
state
(int
, optional): whether to hide (0
), show (1
) or toggle (-1
) the plugin window. Defaults to1
. -
useGlobalIndex
(bool
, optional): whether to use the global channel index when
Included since API version 1.
API Changes
-
v9: Add
state
parameter. -
v33: add
useGlobalIndex
flag.
getActivityLevel
Return the note activity level for channel at index
. Activity level
refers to how recently a note was played, as well as whether any notes are
currently playing.
Args
-
index
(int
): channel index. -
useGlobalIndex
(bool
, optional): whether to use the global channel index when
Returns
float
: activity level.
Included since API version 9.
API Changes
- v33: add
useGlobalIndex
flag.