Phidget.SetAnimation
--------------------

Display an animation.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Phidget](component_Phidget.md) | [16.1](newinversion161.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "Phidget.SetAnimation"; PhidgetRef; animationID; pattern; StartAddress; EndAddress; Time; AnimationType ) 

**MBS**( **"Phidget.SetAnimation";** /\* Display an animation. \*/  
**$PhidgetRef**; /\* The reference number for the phidget.e.g. $phidget \*/   
**$animationID**; /\* The ID of the animation. \*/   
**$pattern**; /\* The list with colors.   
4 values per color with red, green, blue and white.e.g. "255¶0¶0¶0¶127¶0¶0¶0" \*/   
**$StartAddress**; /\* Which LED to start the animation from.e.g. 5 \*/   
**$EndAddress**; /\* Which LED the animation will end on.e.g. 10 \*/   
**$Time**; /\* Time between changes in ms.e.g. 200 \*/   
**$AnimationType**) /\* The animation type.  
Can be ForwardScroll, ReverseScroll, Randomize, ForwardScrollMirror or ReverseScrollMirror.e.g. "ForwardScroll" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PhidgetRef | The reference number for the phidget. | $phidget |
| animationID | The ID of the animation. |  |
| pattern | The list with colors.    4 values per color with red, green, blue and white. | "255¶0¶0¶0¶127¶0¶0¶0" |
| StartAddress | Which LED to start the animation from. | 5 |
| EndAddress | Which LED the animation will end on. | 10 |
| Time | Time between changes in ms. | 200 |
| AnimationType | The animation type.   Can be ForwardScroll, ReverseScroll, Randomize, ForwardScrollMirror or ReverseScrollMirror. | "ForwardScroll" |

### Result

Returns OK or error.

### Description

Display an animation.   
Only for LED arrays.  
### See also

- [Phidget.StopAnimation](PhidgetStopAnimation.md)

### Release notes

- **Version 16.1**
    - Added [Phidget.ClearLEDs](https://www.mbsplugins.eu/PhidgetClearLEDs.shtml), [Phidget.SetAnimation](https://www.mbsplugins.eu/PhidgetSetAnimation.shtml), [Phidget.SetLED](https://www.mbsplugins.eu/PhidgetSetLED.shtml), [Phidget.SetLEDs](https://www.mbsplugins.eu/PhidgetSetLEDs.shtml), [Phidget.StopAnimation](https://www.mbsplugins.eu/PhidgetStopAnimation.shtml) and [Phidget.SynchronizeAnimations](https://www.mbsplugins.eu/PhidgetSynchronizeAnimations.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 16.1 News](https://www.mbsplugins.de/archive/2026-03-31/MBS_FileMaker_Plugin_161_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.1pr1](https://www.mbsplugins.de/archive/2026-02-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 30th January 2026 , last changed 30th January 2026

  
[Phidget.ResetFailsafe](PhidgetResetFailsafe.md) - [Phidget.SetLED](PhidgetSetLED.md)

[HTML Version](PhidgetSetAnimation.shtml)