Page tree
Skip to end of metadata
Go to start of metadata
assignAutomation(element, nameOrID, index, scope)

Description

Function to assign a parameter to an automation parameter. The arguments element and nameOrID specify the parameter to be assigned. The index argument determines to which automation parameter the parameter will be assigned. If the index argument is nil or not set, the parameter will be assigned to the next free automation parameter. The scope determines the part of the program that will be affected by the automation parameter. You specify the scope by setting the scope argument to the Element object that corresponds to the desired part of the program. The function returns the index to which the automation parameter was assigned to. This is useful if the automation parameter was assigned to the next free automation parameter.

Available in: Controller.

Arguments

elementThe Element object of the parameter to be assigned.Element
nameOrIDThe name or ID of the parameter.string or number
indexThe index of the automation parameter, or nil.number or nil, optional
scopeThe Element object that will be affected by the automation parameter.Element

Return Values

Returns the index to which the automation parameter was assigned to.

Example

2 Comments

  1. To Sabine Pfeifer:

    Please check if "automation parameter" is OK or should be changed to just "automation", for example.