/ HALion Developer Resource / HALion Script / Reference /
setZoneFMXAlgo
setZoneFMXAlgo(zone, algo)
(Since HALion 7.0)
Description
Function to set the algorithm of the FM zone. The zone
argument sets the target FM zone by its Zone object. You can use getZone or findZones to determine the Zone object of the target FM zone. The algo
argument is the index that corresponds to the desired FM-X algorithm preset of the FM zone.
Available in: Controller.
Arguments
Argument | Description | Value Type |
---|---|---|
zone | The Zone object of the FM zone. | Zone |
algo | The index that corresponds to the desired FM-X algorithm preset of the FM zone. The index ranges from 1 to 88. | number |
Example
algorithms = {}
for i = 1, 88 do
algorithms[i] = ("Algorithm "..i)
end
function onSelectAlgorithmChanged()
local zone = this.parent:getZone()
setZoneFMXAlgo(zone, SelectAlgorithm)
end
defineParameter("SelectAlgorithm", nil, 1, algorithms, onSelectAlgorithmChanged)