Click the animation frame in the animation window.Ģ. ► To set a background image for an animationġ. You can specify a background image for the animation. The animation frame has properties generic for all animation shapes (see section 12.2.1.2, “Generic properties of animation shapes”). Note that no clipping occurs when animations are encapsulated. Otherwise, in case this animation is encapsulated in another animation, it is used for scaling the encapsulated animation: the scale is evaluated as the ratio of sizes of the animation frame and the encapsulated animation shape in the container animation. In case this is a root animation, it denotes the window area. The blue rectangle, which you cannot delete, is the animation frame. In the Properties window, select/clear the Flip Y-axis check box. Click the animation item in the Project window.Ģ. AnyLogic enables you to change the Y-axis direction since some users got used to working with a frame with Y-axis directed down, while others, with the up-directed Y-axis frame.ġ. Origin point also indicates the axis direction. The blue cross is the origin point (0, 0) of the animation diagram. Properties specifying the location and rotation of the animation on the container animation ( X, Y, Rotation) are suppressed by the dynamic expressions of the corresponding properties of the encapsulated animation shape in the container animation, if the latter is defined.ġ2.2.1.1 Animation origin, axis and frame So, if this property is not set, you cannot know for sure what you select: the rectangle or the animation frame.įlip Y-axis – changes the Y-axis direction. The point is that in this case, the rectangle and the animation frame coincide. This may be useful if your animation contains, e.g., a rectangle covering the entire animation and you want to select such a rectangle. Prevent frame selection – if set, the animation frame becomes non-selectable. Y Offset – if defined, the y-coordinates of all shapes on this diagram are increased by this value.Įxclude from build – if set, the animation is excluded from the model. X Offset – if defined, the x-coordinates of all shapes on this diagram are increased by this value. Scale – if defined, the positions and sizes of all shapes on this diagram are multiplied by this factor. Rotation – dynamic expression of the rotation of the animation on the container animation (radians). Y – dynamic expression of the y-coordinate of the animation on the container animation (pixels). X – dynamic expression of the x-coordinate of the animation on the container animation (pixels). Generic operations”.Īn animation diagram is always associated with an active object class and has the following properties: Right-click the animation in the Project window and choose Open Animation from the popup menu.Īnimation editor shares a set of generic editing operations described in section 1.5.2, “Diagram editors. Double-click the animation in the Project window, or ► To open the existing animation diagram of an active object classġ. An animation diagram links shape properties to active object data and encapsulated objects, and also defines where the animation of this active object appears in the animation of a container, if the latter exists.Īn animation diagram is edited in the animation editor using the animation toolbar, see Figure 145. An animation diagram is a collection of shapes. In AnyLogic 2D animation can be made interactive by adding various types of controls to the animation diagram: buttons, edit boxes, check boxes, radio buttons, sliders, etc.Įach active object class may have an animation diagram associated with it. Obviously, you should make sure those data are accessible. root) active object, you can draw all shapes on its animation diagram, and then associate them with the data of encapsulated active objects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |