11.6 Trigger an Animation at a Specific Milestone

Available with the following Subscriptions: All subscriptions
Available for the following Project Roles: Editor, Admin

Animation Visual Program templates are setup to trigger via a Button Node by default. Replacing the button with a Milestone specific trigger will trigger the animation to start when the Presentation reaches that specific Milestone. 

💡 Note: Basic knowledge of Visual Programs and animation Nodes is required. For more information visit the user guide section: 11.5 Visual Programming Nodes.


Start an Animation at a Specific Milestone

By default, animation Visual Program templates are triggered by a Button Node. Replace it with a Milestone trigger to start the animation when the Presentation reaches a specific Milestone. Choose a Resource with an animation template applied and and choose a Milestone which when reached will act as the triggering event.

  1. Click Resources (1) in the left Toolbar, then select the Resource to animate, for example, the North American Flatbed Semi Truck (2).
  2. Place the Resource in the Scenario and set it to move along a 3D Line. For more information visit the user guide section: 11.2 How to Animate Resources to Follow a Path. The North American Flatbed Semi Truck Resource has a couple premade templates, available in the dropdown of the Visual Prog. Sidesheet tab. 
  1. Open the Visual Prog. tab (3), then click Edit (4) to open the Visual Program editor.
  1. Right-click the Button Node connected to the Sequence Node and select Delete (5) to remove the existing animation trigger.
  1. Double-click an empty area of the graph, type Milestone, and click the Milestone Node (7). 
  1. Copy the exact name of the Milestone that should start the animation using [CTRL] + [C].
  2. Double-click an empty area of the graph, type String, and click the String Node. Click its value field (8) and paste the Milestone name using [CTRL] + [V] (9). 

💡 Note: After any renaming of the Milestone, make sure to update the Visual Program's string value to match.

  1. Double-click an empty area of the graph, type String Compare, and click the String Compare Node (10). Connect the Milestone name (11) and the String Node (12) to it.
  1. Double-click an empty area of the graph, type Trigger Event, and click the Trigger Event Node (1). Connect the Milestone Change (2) event and the String Compare (3) result to it, then connect it to the start of the animation Sequence (4).

💡 Note: Do not connect the Milestone Change directly to the Sequence Node, or the animation will restart every time any Milestone changes.

  1. Activate the selected Milestone to confirm the animation starts.

FAQ

Do Milestone names need to be unique?

Yes. The comparison runs against whichever Milestone is active. If several Milestones share a name, the animation triggers each time any of them is activated.

The animation does not start when the Milestone is activated. What should be checked?

Confirm that all trigger Nodes are connected and that the String value matches the Milestone name exactly. If the animation still does not start, remove the Resource, add it again, and reconnect the triggers.

 

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section