Set up height animation
With height animation, an object’s height changes based on a tag value or the result of an expression. The height of the object is proportional to the value of the expression. For example, if the value of the expression is halfway between the minimum and maximum values, the object’s height will be halfway between its minimum and maximum vertical change percents.
Height animation is available for all drawing objects except image and panel objects, which only support visibility animation.
To set up height animation for an object
- Select the object.
- ChooseHeightfrom theAnimationmenu or click theHeighttab in theAnimationdialog box.
- Select a tag or create an expression that will evaluate to a number at runtime to determine the height of the object.
- Specify minimum and maximum values for vertical change (height) percent. You can also use the Object Smart Path feature to set these values.
- Select the anchor for the object. The object will increase and decrease in height from this point.
- Select the method to use to calculate the expression's minimum and maximum values.
- Specify a range of values for the expression.TIP:You can use the Object Explorer to search for objects on your display that have animation. Open theHighlight Settingsbox and select the kind of animation you want to highlight.
Options
- ExpressionType a tag name or an expression that will evaluate to numeric values at runtime. An expression is a mathematical or logical equation that returns a value. It can contain tag names, constants and mathematical, relational, logical and/or bitwise operators. A tag name can be used as an expression. When you do this, the minimum and maximum expression values default to the tag's minimum and maximum values.
- Expression range
- Use tag's min and max property valuesIf you have specified a tag in theExpressionbox, click this button to use the tag's minimum and maximum values to define the range of values for the expression. If your expression contains more than one tag, the minimum and maximum values for the first tag will be used for the animation.
- Use constantTo use constant numeric values to define a range of values, click this button and specify values for minimum and maximum.
- Read from tagsTo define the range of values using one tag's value for the minimum and another tag's value for the maximum, click this button and then specify a tag for minimum and another for maximum. Using this option, when the display opens and animation for an object is started, the tags' values are read once to set the minimum and maximum values. The tags are not read again after the display is opened, nor are the minimum and maximum values for the animation changed, even if the tag values change.
- Vertical Change (Percent)
- At MinimumThe height of an object when it is selected is the base size (100 percent). Click on a handle on the left or right side of the object and drag it to resize the object.orType the height the object is to be when the expression evaluates to its minimum value. This is a percentage of its base size.
- At MaximumClick on a handle on the left or right side of the object and drag it to resize the object.orType the height the object is to be when the expression evaluates to its maximum value. This is a percentage of its base size.
- AnchorAnchor determines which part of the object remains constant.
- TopSelectTopif the top position of the object is to remain constant. As the value of the expression changes, the object grows to or shrinks from the bottom.
- MiddleSelectMiddleif the midpoint of the object is to remain constant. As the value of the expression changes, the object lengthens and shortens equally on either side of its midpoint.
- BottomSelectBottomif the bottom position of the object is to remain constant. As the value of the expression changes, the object grows to or shrinks from the top.
Provide Feedback