How can I stop a Level Sequence from resetting at the end ?

I’ll start off by stating that I am very new to UE4.
I am working on an Archviz have some lighting that I would like to have dim and change color when the player enters a trigger box and presses the fire button. And then get brighter again on another press.

The problem I am having is that when I trigger the sequence, it plays the animation fine, but then as soon as it’s finished all the tracks snap back to the state they were in before the sequence played out. How can I get the lights to stay in the dim position until I press the trigger again?

I had this working just fine in Marquee, but when I was told Matinee was out and Sequencer was in, I converted it to a Level Sequence. Unfortunately I also deleted my Matinee, and I really don’t want to rebuild it. But I do like how the sequencer works much better.

Maybe I’m not even going about this the right way? I’ll attach some pictures of my blueprint and the scene for reference.

1 Like

Well I figured out how to do what I wanted using timeline events.
So the Level sequencer is just form making cutscenes?

Every tutorial out there that uses matinee for something like interactive door animations is going to need to be updated…

Oh Wow! Thanks!
I didn’t realize it was a bug. I thought I was just doing everything wrong :stuck_out_tongue_winking_eye:
Thanks for answer, Looking forward to using the sequencer in 4.15.

I have the same problem here. Using Level sequencer, the animation snap back to the initial state after finish. I tested with 4.15 and the problem continues, “Restore state” does not affect this…

I’m using the PLAY sequence player.

anyone?

Level sequencers can be useful in quite a number of ways, but yes, for an effect you want to have control over a timeline is a much cleaner solution.

It was working fine for me in 4.14, with this new update no matter what ‘Restore State’ is set to it seems to always reset now; I think this is either bugged with 4.15 or is broken with existing/old sequence players converted to 4.15.

Hey,

Sorry to hear that. I’ll see if we can get a repro on our end.

Here is a zipped new 4.15 project with a simple example of it resetting, no matter what ‘Restore State’ is set to - https://drive.google.com/file/d/0B5Hlx38HoC1geDNVVy1KenNGN1E/view?usp=sharing.

I posted a bug report on this here - Sequence Player 'Play' Reset Bug - Cinematics & Media - Unreal Engine Forums - which I have updated with reproduction steps.

I added a bug report for this here - Sequence Player 'Play' Reset Bug - Cinematics & Media - Unreal Engine Forums.

Hopefully it is fixed in the next 4.15 patch/hotfix as it seems whoever implemented this must have forgotten to check the ‘Restore State’ value and is defaulting to as if it is always set to true.

Hey Everybody,

I’m going to be taking over the investigation of this issue. I’ve identified that 's issue appears to be specific to the fade track. Other tracks added to the sequence in his example project (i.e. a cube with translation) remain in their final position when “Restore State” is disabled.

@HaasWeston and @Dragonavenger, can you guys provide an example project because I’m having trouble reproducing your issues on my end?

Hi,

I’m having this issue as well, did you find a bug fix or something? A simple Z translation gets restored after the end of the sequence, whether or not the Restore State box is ticked.Btw I’m on UE 4.16.

I’m on 4.15 and the issue persists.
It’s only on animations attached to a skeletal mesh.

Process

  • Create Level Sequencer
  • Select the Skeletal Mesh in the scene and add it to the Level Sequencer.
  • Select the Animation and make sure the range is correct so it’s not playing past the clip.

In the Level Blueprint

  • Make the Trigger an AddActorBeginOverlap
  • With the Level Sequencer select, create a referencer to that node
  • Out of the referenced Level Sequencer node
  • Get Sequencer Player
  • Out of Get Sequence Player drag to Play under the Game-Cinematics menu
  • Connect the Trigger and Compile

When I approach Trigger, the animation will play and then snap back to the first pose. I’ve repeated the problem on 4.14, 4.15 and 4.16

The Restore State box is not checked on the Level Sequencer in 4.15

I’ll go through the same process with a Static Mesh.

  • Add the Static Mesh
  • Key the Translation from ground to above a character
  • When the character approaches, the trigger will fire and the static mesh plays the animation and does not reset.

I’m pulling my hair out searching for a solution and wondering if I’m doing anything wrong.

Also, I’ve tried this on both Mac and PC with the same results.

This may be a slight duplicate because I don’t see the comment I posted a few minutes ago.

I’m having the same issue in 4.14, 4.15 and 4.16

The reset only happens with animation on a skeletal mesh.

  • I create a level sequence
  • Add a skeletal mesh door with animation brought in from Maya
  • I make sure the time line in the level sequencer is set to the animation length.
  • Next I create a trigger in front of the skeletal mesh I dragged into the scene

In the Level Blueprint editor

  • Make the trigger an OnActorBeginOverlap
  • Then select the level sequencer in the world and make it a reference in the level blueprint
  • Out of the Level Sequence node connect it to Get Sequence Player
  • Out of Get Sequence Play drag it to Play, under the Game/Cinematic menu.

When I execute the trigger in game, ti will play the animation then snap back to the first frame.

The Restore box is not checked.

BUT, when I take a static mesh into the level sequencer and animate the translation starting on the ground and going up, it works fine.
The animation does not reset.

I’m pulling my hair out. Am I doing something wrong?
I’ve recreated this issue on 4.14, 4.15 and 4.16 on both PC and Mac.

I’m having this problem too. State resets on sequence end regardless of “Restore state” checkbox. UE4.16.1

“Random Start Time” is also useless. It always starts at 0 if I have it checked.

Hey Everybody,

Just a heads up, we’ve got UE-45417 and I’ve updated it (internal comments) to note that this isn’t exclusive to sub-sequences.

Bug is still present in 4.16.2. Looks like from version 4.15 UE4 becomes more and more buggy, a lot of things stop working or work much slower than before.

Unfortunately, I have to use UE4 on a MAC and version 4.16 does not show “When Finished” option when you right click on the animation clip.

Same here, 4.16.1 too

Still no fix for this? I’m on 4.16.2 and Restore State appears to still be broken? I’ve got a one time use Elevator that I was running with Level Sequencer but to get it to FlipFlop, it wont stay at its second position. It just reverts to its original state regardless. On Play Reverse it does work however. So i think the problem is literally just the functionality of that checkbox.