setParameter(nameOrID, value)
Description
Function to set the value of a parameter. The parameter can be identified by name or ID. If the parameter doesn't exist, no change will happen.
Available in: Controller, Processor.
Arguments
nameOrID | The name or ID of the parameter. |
---|---|
value | The value you want to set. The new value must match the type of the parameter. |
Example
-- set the value of the Level parameter of the parent layer function onLoadIntoSlot() this.parent:setParameter("Level", 0) -- set via name this.parent:setParameter(38, 0) -- set via ID end