Rotation Animations
You can use animations to rotate a Mimic object according to the value or state of an item in the database. To do this, you need to animate 2 Mimic object properties:
- PivotType—defines the anchor position of the object when it is rotated, for example, if the value is 4 for the animation, the Mimic object will rotate from the right-hand side (the right-hand side will not move).
You need to define the PivotType as a number in your expressions. The numbers and corresponding pivot types are:
| Number for Expression | Rotation Position |
|---|---|
|
0 |
Center |
|
1 |
Top Left |
|
2 |
Top |
|
3 |
Top Right |
|
4 |
Right |
|
5 |
Bottom Right |
|
6 |
Bottom |
|
7 |
Bottom Left |
|
8 |
Left |
- Rotation—defines the angle of rotation for an object. Typically, you animate the Rotation property in conjunction with the PivotType property to rotate an object from a specific position, such as its bottom left corner.
The Rotation property is often used in animations that show analog read-outs such as dials, where the following expression is used to associate the angle for the rotation with the value of the point:
( "<.Point>.CurrentValue" / ".Pressure.FullScale" ) * 360
Where <.Point> is the path and name of the point (do not enter the angle brackets < > ). The CurrentValue property is the point' s current value and the FullScale is the highest possible point value. 360 is the maximum angle.
The point' s value is divided by the point' s maximum value. The result of this is multiplied by the maximum angle (360) which results in the angle that is used for the Rotation animation.