Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Excerpt
Panel

setParameter(nameOrID, value)

Description

Function to set the value of a parameter. The parameter can be determined by name or ID. The function will do nothing have no effect if the parameter doesn't does not exist.

Available in: Controller, Processor.

Arguments

nameOrIDThe name or ID of the parameter.string or number
valueThe value that you want to set.The new value must match the data type of the parameter.

Example

Code Block
-- 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

Excerpt Include
Working with Parameters
Working with Parameters
nopaneltrue

Panel

See Also: getParameter, getParameterNormalized, setParameterNormalized, hasParameter