Copy Color Effect

Copies the led colors from another port.

Note: In some cases the copied colors can lag behind the Target port one update tick. Put the profiles that use this effect as last in the list to prevent that.

Format

{
  "Type": "CopyColorEffect",
  "Config": {
    "Target": <PortIdentifier>,

    "ColorGenerationMethod": <enum>,
    "Trigger": <Trigger>
  }
}

Variables

Target

The Port Identifier to copy the colors from.

Required: Yes
Default value:

Example:

"Target": [9802, 8101, 1]

ColorGenerationMethod

Tells the effect how to generate colors for multiple devices. The actual behaviour is depended on the effect implementation.

Allowed values:

  • "PerPort" - Duplicates the effect on each device.
  • "SpanPorts" - Treats multiple devices as one.

Required: No
Default value:

"PerPort"

Example:

"ColorGenerationMethod": "SpanPorts"

Trigger

Instance of a Trigger plugin.

Required: Yes
Default value:

Example:

"Trigger": {
  "Type": "AlwaysTrigger"
}

Example

{
  "Type": "CopyColorEffect",
  "Config": {
    "Target": [9802, 8101, 1]
  }
}