Skip to main content

KSPTable

The KSPTable class allows you to connect to a ui_table in KSP.

class KSPTable

Example

import { KSPTable } from kontakt

var table = KSPTable(id: "my_table")

Constructor

constructor(id: String)

Connects to a ui_table in KSP with the given control ID.

Properties

connected

connected: Bool { get }

Whether the control is connected. A control might not be connected if no corresponding control was found for the given id.


custom_id

custom_id: Int { get }

The value of $CONTROL_PAR_CUSTOM_ID set on this control.


id

id: String { get }

The KSP control ID this table is connected to.


max

max: Int { get }

The maximum value.


min

min: Int { get }

The minimum value.


values

values: [Int] { get }

The values of all columns.


length (8.3)

length: Int { get }

Number of columns.

Methods

set_value

set_value(_ value: Int, at index: Int) -> ()

Sets a the given value to the column at the given index.


value

value(at index: Int) -> (Int)

Returns the value for the column at the given index.