Skip to main content

Part 4: Animation settings

This section describes thehow to create an animation settings.that Here,animates the position and size of an object. Here, the thumbnail image of the music is changedanimated.

by

Configuring the animationAnimation

settings.

Right-click on

In the "Cover"Scene belowTree "Music"panel innavigate to the SceneTreeRenderNode2D panelCover and selectright-click "it. Select [Add Animated Property..."] to openfrom the "context menu. The Cover node can be found in the path below.
    The Property Animation Configuration"Configuration dialog.dialog will be opened.
    drawing-5-1729855810.png
    Scene Tree

    Path

    IVI_Sample > IVI_Sample > Music > Cover
    In the "Property Animation Configuration"Configuration dialog makeapply the followingsettings settingsas in the table below and press OK.[OK].
    • Add to : CreateA new animation andMyAnimation enterhas anybeen name (eg. MyAnimation)created.
    • Location : /Animations
    Property: Position
    Interpolation: Spline Select Radio button of "CreateThe new keyanimation frameis sequence" and check both axes: "X" and "Y".
    drawing-5-1729855928.png

    The screen will switch to Animation Design screen. Press "Scene Design" buttonvisible in the upperSolution leftExplorer.

    toolbarScene Composer switches to returnAnimation Design. Three new panels are visible:
      Animation Configuration panel Animation Timeline panel Animation Values panel

      To switch back to Scene Design press the screen[Scene Design] button in Scene Composer's main toolbar.

      Create new Animation
      MyAnimation Location
      /Animations
      Property
      Position
      Interpolation
      Spline Create new keyframe sequence
      X and Y
      drawing-5-1748007940.png


      In the Animation Configuration panel's scene tree select the same Cover node as before. In the Properties panel click on the [+] button.
        The Property Animation Configuration will be opened.

        In the Property Animation Configuration apply the settings as in the table below and press [OK].
          A new keyframe sequence for the property "scale" has been added to the Sceneexisting Designanimation screen.MyAnimation.
          This
          can
          be
          drawing-5-1729856179.png

          After returning to "Scene Design" screen, again right-click "Cover" below "Music"seen in SceneTreethe Animation Timeline, in the Animation Values panel and select "Add Animated Property..." again. This time, configure followingin the belowProperties list.

          panel.
            Addto: Selected Animation
            (SelectMyAnimation Animation youjustProperty
            created)Scale
            Property: ScaleInterpolation:Interpolation
            Spline Select Radiobutton of "Create new keykeyframe framesequence
            sequence" Check both axes: "X"X and "Y".Y

            drawing-5-1729860069.png

            Select "Animation Design" button to show

            In the Animation Values Panel.panel Selectselect the Positionanimated Animation Valuesproperties and enter the valuesconfigurations from belowthe table.table
            below.
            The keyframes for the animated properties are fully configured.
            IVI_Sample\Music\Cover\Position\XY Time X Y 0 138.00 240.140.00 1000 104.00
            207.00
            drawing-5-1729860230.png

            Next, select the Scale Animation Values and enter the values from below table.

            IVI_Sample\Music\Cover\Scale\XY
            Time X Y 0 0.550 0.550 1000 1.00 1.00
            drawing-5-1729860308.png


            Check Animation in Player

            Use the Player to check the configured animation.

              Save your solution and click the [Play buttonselected inscenario...] icon on the menu bartoolbar to runstart CGIthe Player.
              drawing-5-1729855296.png


              • InThree thewindows Musicwill section:open, Clickand onto the progress bar below the Song title or drag it around. Youyou can see that the progresssimulation timedisplay is changed according to your operation.
              Inshows the ComfortIVI_Sample section: Press either +/- buttons in Seat heater section and watch the value and progress bar being updated according to your operation.scene.

              In CGI Panel below the menu select your animation from the drop-down list.list Thenand press the "run animation" button right next to the drop-down listlist.
              in
              order to play theThe configured animation.animation You can now watchof the Cover image animationwill be started and played once in CGIthe Player.simulation display.
              drawing-5-1696002805.pngdrawing-5-1696002805.png