11.7 Reset Animation Node Values

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

Resetting key values in an animation's Visual Program will produce an animation that will overall appear smoother and more realistic. An animation's Visual Program Nodes' will keep the last assigned/calculated value, until another instruction changes it. For example, after cargo is lowered to a height of 0, the cargo will stay at 0 and begin there the next time the animation plays. Reset the value of key Node's at the start of the animation, either gradually or instantly -using additional Visual Program Nodes.

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

This article contains the following sections:

  1. Reset with the Animate Bone Node
  2. Reset Instantly with the Set Bone Values Node

Reset with the Animate Bone Node

This method uses a single Node and adjusts values back gradually, the cargo will visibly rise to its starting height.

  • Double-click an empty area of the graph, type Animate Bone, and click the Animate Bone Node (1).
  • Select the same bone as the original movement.
  • Reverse the values of the original movement -swap the values of A and B- for example from 0 to 1 (2).
  • Set a short but reasonable Duration (3), not 0 or the movement will appear instantaneous.
  • Connect the animation start event to the new Animate Bone (4) Node's Trigger input.
  • Connect the Finished output of the Animate Bone Node to the rest of the program.

Reset Instantly with the Set Bone Values Node

This method returns the value to its starting point instantly, with no visible movement.

  • Double-click an empty area of the graph, search for then select the Set Bone Values Node (1) to insert it.
  • Double-click an empty area of the graph, search for then select the Select Bone Node (2) to insert it. Connect the Bone output port to the Set Bone Values Node input port (3), then select the bone to change.
  • Double-click an empty area of the graph, search for then select the Number Node (4) to insert it. Enter a starting value, for example 1. Connect its output port to the Set Bone Values Node's (5) Value input port.
  • Connect the animation start trigger to the Set Bone Values Node.
  • Connect the completed output of the Set Bone Values Node to the next movement.
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