ScriptTable
Class methods
addToMacroControl
Adds the knob / button to a macro controller (from 0 to 7).
ScriptTable.addToMacroControl(int macroIndex)
changed
Call this to indicate that the value has changed (the onControl callback will be executed.
ScriptTable.changed()
createLocalLookAndFeel
Returns a local look and feel if it was registered before.
ScriptTable.createLocalLookAndFeel()
fadeComponent
Toggles the visibility and fades a component using the global animator.
ScriptTable.fadeComponent(bool shouldBeVisible, int milliseconds)
get
returns the value of the property.
ScriptTable.get(String propertyName)
getAllProperties
Returns a list of all property IDs as array.
ScriptTable.getAllProperties()
getChildComponents
Returns list of component's children
ScriptTable.getChildComponents()
getGlobalPositionX
Returns the absolute x-position relative to the interface.
ScriptTable.getGlobalPositionX()
getGlobalPositionY
Returns the absolute y-position relative to the interface.
ScriptTable.getGlobalPositionY()
getHeight
Returns the height of the component.
ScriptTable.getHeight()
getId
Returns the ID of the component.
ScriptTable.getId()
getLocalBounds
Returns a [x, y, w, h] array that was reduced by the given amount.
ScriptTable.getLocalBounds(float reduceAmount)
getTableValue
Returns the table value from 0.0 to 1.0 according to the input value from 0.0 to 1.0.
ScriptTable.getTableValue(float inputValue)
getValue
Returns the current value.
ScriptTable.getValue()
getValueNormalized
Returns the normalized value.
ScriptTable.getValueNormalized()
getWidth
Returns the width of the component.
ScriptTable.getWidth()
grabFocus
Call this method in order to grab the keyboard focus for this component.
ScriptTable.grabFocus()
loseFocus
Call this method in order to give away the focus for this component.
ScriptTable.loseFocus()
referToData
Connects it to a table data object (or UI element in the same interface). -1 sets it back to its internal data object.
ScriptTable.referToData(var tableData)
registerAtParent
Registers this table (and returns a reference to the data) with the given index so you can use it from the outside.
ScriptTable.registerAtParent(int index)
sendRepaintMessage
Manually sends a repaint message for the component.
ScriptTable.sendRepaintMessage()
set
Sets the property.
ScriptTable.set(String propertyName, var value)
setColour
sets the colour of the component (BG, IT1, IT2, TXT).
ScriptTable.setColour(int colourId, int colourAs32bitHex)
setControlCallback
Pass a inline function for a custom callback event.
ScriptTable.setControlCallback(var controlFunction)
setKeyPressCallback
Adds a callback to react on key presses (when this component is focused).
ScriptTable.setKeyPressCallback(var keyboardFunction)
setLocalLookAndFeel
Attaches the local look and feel to this component.
ScriptTable.setLocalLookAndFeel(var lafObject)
setPosition
Sets the position of the component.
ScriptTable.setPosition(int x, int y, int w, int h)
setPropertiesFromJSON
Restores all properties from a JSON object.
ScriptTable.setPropertiesFromJSON( var jsonData)
setSnapValues
Connects the table to an existing Processor. Makes the table snap to the given x positions (from 0.0 to 1.0).
ScriptTable.setSnapValues(var snapValueArray)
setTablePopupFunction
Pass a function that takes a double and returns a String in order to override the popup display text.
ScriptTable.setTablePopupFunction(var newFunction)
setTooltip
Shows a informative text on mouse hover.
ScriptTable.setTooltip( String tooltip)
setValue
Sets the current value
ScriptTable.setValue(var newValue)
setValueNormalized
Sets the current value from a range 0.0 ... 1.0.
ScriptTable.setValueNormalized(double normalizedValue)
setValueWithUndo
Sets the current value and adds it to the undo list. Don't call this from onControl!
ScriptTable.setValueWithUndo(var newValue)
setZLevel
Changes the depth hierarchy (z-axis) of sibling components (Back, Default, Front or AlwaysOnTop).
ScriptTable.setZLevel(String zLevel)
showControl
Hides / Shows the control.
ScriptTable.showControl(bool shouldBeVisible)
updateContentPropertyInternal
This updates the internal content data object from the script processor.
ScriptTable.updateContentPropertyInternal(int propertyId, var newValue)
updateValueFromProcessorConnection
Updates the value from the processor connection. Call this method whenever the module state has changed and you want to refresh the knob value to show the current state.
ScriptTable.updateValueFromProcessorConnection()