Model Animation in 3D Scenes

  • Last update:November 22, 2024
  • Overview

    This document is applicable to users who have installed the FineVis Data Visualization plugin to learn plugin functions.

    Version

    Report Server Version
    Plugin VersionFunctional Change

    11.0.22

    V2.10.0

    • Cancelled the overall switch button Enable Model Animation.

    • Added Solution Name and Playback Command in the Animation Solution Setting box. For details, see section "Model Animation Management."

    • Added Playback Command and Playback Method under Interaction Event > Add Event > Click > 3D Model Animation. For details, see section "3D Model Animation Event."

    Application Scenario

    In the 3D custom scene, you can add model animations to a 3D scene whose model is set with an animation solution or a wireframe animation. The following figure shows the effect.

    1726211801979713.gif

    Linkage effects can be displayed when you link the model animation with other components. For details, see Applying Animation in the FVS 3D Component. This document only introduces how to set the model animation.

    Function Description

    If an animation solution exists in a model, you can add animations in the following three ways.

    • Custom model component editing page: Choose Model > Manage Model Animation.

    • Components including the title component: Choose Interaction > Add Event, click Click, and select 3D Model Animation to add a 3D model animation event.

    • Components including the title component: Choose Interaction > Add Event, click Click, and select JavaScript to add a JavaScript event.

    iconNote:
    If the animation object involved in the animation solution is deleted due to the deletion of the GLB file/imported model, the corresponding animation solution will not be deleted. You will be prompted that no animation is found in Animation Object.

    Model Animation Management

    1. On the Model configuration panel, click Manage Model Animation, and then click Add Animation Solution.

    iconNote:

    1. In versions earlier than V2.10.0, you need to first select Enable Model Animation, and then add an animation solution. 

    2. When no animation objects exist in the 3D scene, the button for adding an animation solution will be grayed out. When you hover the cursor over the button, a prompt will pop up indicating that no animation objects are currently available for configuration.

    1.png

    2. Animation Solution setting items are as follows.

    • Solution Name: You can customize the animation solution name. The default value is null value. Null value and duplicate names are not supported.

    • Animation Object: You can select model animations and wireframe animations in the current 3D   component. Multiple objects can be selected.

    • Playback Command: You can only select Start Playback from the drop-down list of PlayBack Command.

    • Command Time: You can select Play at Once or Delay Animation. You can customize the delay time, whose default value is 1000 ms later.

    • Playback Method: You can select Single Playback (default value) or Loop Playback.

    iconNote:
    Solution Name and Playback Command are newly added in V2.10.0.

    2.png

    3. You can edit, delete, and enable/disable the set animation solution on the Manage Model Animation tab page.

    3.png

    3D Model Animation Event

    You can set 3D model animation events for all components that support click events.

    After the component is selected, choose Interaction > Add Event, click Click, and select 3D Model Animation.

    Execution setting items are as follows.

    • Solution Name:  Customize the animation solution name. The default value is empty.

    • Animation Object: You can select model animations and wireframe animations in the current 3D    component. Multiple objects can be selected.

    • Playback Command: You can select Start Playback, Pause Playback, or Exit Playback.

    • Command Time: You can select Play at Once or Delay Animation. You can customize the delay time, whose default value is 1000 ms later.

    • Playback Method: You can select Single Playback (default value) or Loop Playback.

    iconNote:

    1. Solution Name and Playback Command are newly added in V2.10.0.

    2. Command Time and Playback Method are only available when Start Playback is selected in Playback Command.

    3. Multiple animation effects are not allowed in a 3D model animation. That is to say, different playback commands, command times, and playback methods must be respectively defined based on different animation objects.

    4.png

    JavaScript Event

    You can set JavaScript events for all components that support click events.

    After the component is selected, choose Interaction > Add Event, click Click, and select JavaScript, as shown in the following figure.

    5.png

    The JS code is as follows.

    const animation = duchamp.getWidgetByName("Component Name").getMeshByName("Model Name").getAnimationByName("Animation Name")

    Start Playback, Pause Playback, and Exit Playback are supported.

    The code is as follows for playback start.

    animation.play(
    // Whether to restart playback
    isRestart:false,
    // Whether to loop playback
    isLoop:false,
    // Whether to restore to the start status after playback endsisInitialOnPlaystop:false,
    // Playback end callback function
    onAnimationPlayStop:()=>{}
    })

    The code is as follows for playback pause.Copy to clipboard

    animation.pause()

    The code is as follows for playback exit.

    animation.stop(true)
    iconNote:
    When the value is true, the animation will exit and the scene will be restored to the state before the animation playback. When the value is false, the animation will exit and the scene will remain at the current animation frame.

    Attachment List


    Theme: FineVis Data Visualization
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy