setValue(_:forInputKey:)
Sets the value for an input port of a composition.
Declaration
func setValue(_ value: Any!, forInputKey key: String!) -> BoolParameters
- value:
The value to set for the input port. The input port must be at the root patch of the composition. The data type of the
valueargument must match the input port. See Qcportattributetypekey for the data types accepted by a particular port type. - key:
The key associated with the input port of the composition. This method throws an exception if
keyis invalid.
Return Value
Returns false if it cannot set the value.