Set the weight of an animation track from blueprint

Hi!

Is there a way to set the weight of an animation track that is in a level sequence from a blueprint? I would like to decrease the weight before switching to another level sequence upon an interaction. I can’t find a way to do this from blueprint sadly.

Yes, it should be possible to set the weight of an animation track that is in a level sequence. One way I know that works is to use the Set Playback Position node in the Blueprint.

Here’s an example of how you can use this node to set the weight of an animation track:

  1. In your Blueprint, create a variable to store the desired weight of the animation track.
  2. Drag out a “Set Playback Position” node and connect it to the “Event Begin Play” node or any other event you would like to use.
  3. In the Set Playback Position node, select the level sequence that contains the animation track you want to modify.
  4. In the “New Position” section of the node, set the “Weight” value to the variable you created in step 1.

You can also use the “Set Playback Position” node at any point in your Blueprint to adjust the weight of the animation track when the desired interaction occurs.

You can also use the Set Float or Set Integer nodes for the same purpose.

The key is to find the exact parameter that you want to modify and then use the appropriate node to set its value.

Let me know if this was helpful! :slight_smile:

Hi EliasWick! Thank you so much for your help. I think I almost have it now. I can’t however figure out how to actually set the weight value. When I use the Set Playback Position Node it needs “Playback Params“. I created those using the MakeMovieSceneSequencePlaybackParams Node.

I sadly don’t find the “New Position” section that you are talking about.

Hmm I see… If you right-click and expose the Frame Struct as well, perhaps you are able to access the frames and frame position from there?

Sadly, I don’t think thats helping. I need to access the specific animation track in a way I guess, because of course there could be multiple. Is there another way to do this?