Anyway to replay a layer?

Aug 07, 2012

I've created a layer that uses the timeline to show different options in a search field. When it gets to the end of the layer's timeline, I'd like the timeline to either repeat (loop) or have an option for the user to replay the 'animation' in the timeline.

Anyway to repeat/replay a layer?

Thanks,

Gary

32 Replies
Adam Bayliss

Hi Phil - I tried that, and it only played once - the pumping heart layer finished & stopped (having reached the end of its timeline)

So I added a trigger in the Repeat layer to close it / reopen. Now it works twice, but on the second time round the heart covers the arrows that are supposed to be on top - and it only runs twice! - This should be simple, I just wanted to add a GIF - but this is driving me mad (and I've been working on it most of the morning!)

Please look at this - if you can send me a fixed version back, it would be much appreciated!

Karma Tshering

Sorry if this response is too late to the party.

My simple workaround to repeat a layer especially helpful to animate with multiple buttons to show the same layer with looping animation would be:

Let's say you want to loop layer with name "Repeat Layer" with button "X" and "Y". Both buttons showing same layer but with repeat animation. 

Here how it goes:

With the button "X" add trigger:

1. First hide the layer "Repeat Layer"

2. Then, Show layer "Repeat Layer"

Likewise, for button "Y" add trigger

1. First hide the layer "Repeat Layer"

2. Then, Show layer "Repeat Layer"

Important: Keep the "hide" layer always on top of "show". In this way, the trigger first hides and display again in that sequence.

Additional tips: Mine works with the layer set to "Automatically decide" but you can set yours to "Reset to initial state" if somehow it decides to Resume saved state which will cause not to work as expected.

Hope this helps someone!