Skip to main content
Participant
December 14, 2016
해결됨

2 layers switch back and forth My lingo is too generic to get a specific answer (AE)

  • December 14, 2016
  • 2 답변들
  • 1374 조회

Hola
Looking to simply make 2 layers switch back and forth. Layer 1 has a drawing open layer 2 has drawing closed. Just want it to toggle between the 2.
When I ask the answers are all about, replacing footage or layer in it's entirety. I know it is crazy simple. An expression or action will prob do it.

이 주제는 답변이 닫혔습니다.
최고의 답변: Rick Gerard

A layer can only have one in and one out point so the easiest way to pull this off would be to put one image on the bottom layer and then animate the opacity of the top layer. This is assuming that there are no transparency issues with your images. I would set the CTI (Current time indicator) to frame zero, then press Alt/Option + t to set the first opacity keyframe at 100. Now move to frame 10 and set the opacity to zero, now move to frame 20 and set the opacity to 100 again.

Assuming that you do not want any kind of a dissolve between keyframes you now select all the keyframes by clicking on the opacity property in the timeline and then right click while hovering over any of the selected keyframes and select Toggle Hold Keyframe.

The last step is to add this expression:

loopOut()

This will make the top layer turn on and off every 10 frames. You can adjust the timing by selecting all of the keyframes and then while holding down the Alt/Option key you can click and drag on the last keyframe to uniformly change the timing between all keyframes so you could easily drag to the right and increase the time between cuts to 20 frames or move to the left and change the timing of the cut to every 5 frames.

I hope this helps. I should also mention that there are probably about 20 different ways to do what you want to do, this is just one of them but they all follow the same rule - only one in and one out point per layer.

2 답변

Kevin-Monahan
Community Manager
Community Manager
January 21, 2017

Hi Daniel M,

An expression or action will prob do it.

Did Rick's answer assist you? Let us know.

Thank you,

Kevin

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio
Community Expert
December 14, 2016

A layer can only have one in and one out point so the easiest way to pull this off would be to put one image on the bottom layer and then animate the opacity of the top layer. This is assuming that there are no transparency issues with your images. I would set the CTI (Current time indicator) to frame zero, then press Alt/Option + t to set the first opacity keyframe at 100. Now move to frame 10 and set the opacity to zero, now move to frame 20 and set the opacity to 100 again.

Assuming that you do not want any kind of a dissolve between keyframes you now select all the keyframes by clicking on the opacity property in the timeline and then right click while hovering over any of the selected keyframes and select Toggle Hold Keyframe.

The last step is to add this expression:

loopOut()

This will make the top layer turn on and off every 10 frames. You can adjust the timing by selecting all of the keyframes and then while holding down the Alt/Option key you can click and drag on the last keyframe to uniformly change the timing between all keyframes so you could easily drag to the right and increase the time between cuts to 20 frames or move to the left and change the timing of the cut to every 5 frames.

I hope this helps. I should also mention that there are probably about 20 different ways to do what you want to do, this is just one of them but they all follow the same rule - only one in and one out point per layer.