Page tree
Skip to end of metadata
Go to start of metadata

getSlot(nameOrIndex)

Description

Function to retrieve the Slot object of a slot of the plug-in instance. Before calling this function you must access the Instance object with this.program.instance. A particular slot can be searched by name or index. The index equals the slot numbering in the Slot Rack. If no argument is set, the function returns the first slot it finds.

Available in: Controller, Processor

Arguments

nameOrIndexThe name or index of the slot. Set this to nil to deactivate the search filter.string or number, optional

Return Values

Returns the Slot object of the found slot. Returns nil if no slot is found.

Example

-- print the name of slot index 3
slot = this.program.instance:getSlot(3)
print(slot.name)

3 Comments

    1. Please reread. Thanks!