ColorPanel.SetColorChangedEvaluate
----------------------------------

Sets expression to run when color changed.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ColorPanel](component_ColorPanel.md) | [8.3](newinversion83.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ColorPanel.SetColorChangedEvaluate"; Expression ) 

**MBS**( **"ColorPanel.SetColorChangedEvaluate";** /\* Sets expression to run when color changed. \*/  
**$Expression**) /\* The expression to calculate. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Expression | The expression to calculate. |  |

### Result

Returns OK or error.

### Description

Sets expression to run when color changed.  
The plugin can evaluate this expression to set variables, call plugin functions to trigger other things.  
Use [ColorPanel.GetColor](ColorPanelGetColor.md) to query new color.  
  
It may be good to call this with empty expression when you leave the layout where you need it to avoid unexpected calculations later.  
### See also

- [ColorPanel.GetColor](ColorPanelGetColor.md)
- [ColorPanel.GetColorChangedEvaluate](ColorPanelGetColorChangedEvaluate.md)
- [ColorPanel.GetColorChangedScript](ColorPanelGetColorChangedScript.md)
- [ColorPanel.SetColorChangedScript](ColorPanelSetColorChangedScript.md)

This function is free to use.

Created 13th June 2018 , last changed 20th April 2020

  
[ColorPanel.SetColor](ColorPanelSetColor.md) - [ColorPanel.SetColorChangedScript](ColorPanelSetColorChangedScript.md)

[HTML Version](ColorPanelSetColorChangedEvaluate.shtml)