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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

getParameterNormalized(nameOrID)

Description

Function to read the current value of a parameter in a normalized range from 0 to 1.0. The parameter can be specified by name or ID.

Available in: Controller, Processor.

Arguments

nameOrIDThe name or ID of the parameter.

Return Values

Returns the current value of the parameter in a normalized range from 0 to 1.0 or nil if the parameter doesn't exist. The function returns the same as getParameter if the parameter is not numeric.

Example

-- print the normalized value of the parent layer's level parameter
function onLoadIntoSlot()
    print("Level = "..this.parent:getParameterNormalized("Level")) -- via name
    print("Level = "..this.parent:getParameterNormalized(38)) -- via ID
end
  • No labels
Write a comment…