x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Animation Blueprint: Sequence Finished Notify?

In my Animation Blueprint I am using a kind of override animation for attacking etc. that gets blended on top of the locomotion animation (upper body only).

This override animation is a reference to any animation sequence and gets set dynamically. The problem is I don't know how to tell when the override animation has finished playing, so I can switch back to "locomotion only".

The blueprint node (play sequence) I am using doesn't seem to give out any information/event about this and adding a notification "manually" to every single sequence that can potentially get played as an action-override seems like an extremely bad solution. Any help?

Product Version: UE 4.10
Tags:
more ▼

asked Jan 26 '16 at 10:54 AM in Using UE4

avatar image

MaxPower42
643 67 82 117

avatar image MaxPower42 Jan 26 '16 at 11:21 AM

Basically, all I need is to have one bool-variable set to false when the override animation has finished playing.

The only solution I can think of is to get the sequence's length on starting to play and use that length to count down a timer and then set the value to false. But somehow that seems like a dirty workaround.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hello

It seems that you need a Slot inside your Animation Blue Print.

Check this tutorial and see if it helps you: https://www.youtube.com/watch?v=per6KmuvRlQ

Good luck!

more ▼

answered Jan 26 '16 at 12:35 PM

avatar image

FilipeTessaro
1.4k 54 21 60

avatar image MaxPower42 Jan 26 '16 at 01:05 PM

Thanks! I'm gonna have a look at this.

avatar image MaxPower42 Jan 27 '16 at 11:46 PM

I haven't actually used a montage before and I'm not sure I need all this at the moment.

Actually, I would be fine if I could simply make the AnimGraph's PlaySequence node re-play from frame zero, when I set a new animation there. The time just keeps running and all I can seem to do about it is to check "loop animation". While this looks ok at first, I am sure there will be small, accumulating "offsets", because (as I understand it) the animation doesn't go back to zero after finished, but to zero plus the amount of time that the last update's DeltaTime exceeded the sequence's end.

So, all I need would be a way to play a sequence from the beginning every time it gets involved in blending :/

avatar image MaxPower42 Jan 28 '16 at 11:36 AM

I've made a bit of progress by using a state machine now, but it's still not completely satisfying...

This is the only way I can see to reset animation sequences to frame zero. There are only 2 states. The first just serves as the entry point and immediately makes a transition to the "PlayActionAnim"-state. When that sequence has finished, it transitions back to the first state. From what I observed, once the transition has reached 100% first state and 0% second state, the sequence of the second state will get reset the next time it is entered. If the transition hasn't completed, it won't.

The problem is, my anim-graph's blending logic will cause the state-machine to stop running when the action-animation has finished. That means the transition has to be finished then... I set the transition-duration to zero inside the state machine, but now it looks kind of chunky at the end.

... but I guess one or two more workarounds and I'll be fine.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question