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 Available in: Controller, Processor Returns the Slot object of the found slot. Returns
getSlot(nameOrIndex)
Description
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.Arguments
nameOrIndex The name or index of the slot. Set this to nil
to deactivate the search filter.string or number, optional Return Values
nil
if no slot is found.Example
-- print the name of slot index 3
slot = this.program.instance:getSlot(3)
print(slot.name)
Overview
Content Tools
3 Comments
Sabine Pfeifer
proofread done
Matthias Klag
Please reread. Thanks!
Sabine Pfeifer
proofread done