Forums › Adobe After Effects Expressions › Playing portions of a composition based on slider value
-
Playing portions of a composition based on slider value
-
Chris Thomas
December 7, 2017 at 3:28 pmI have a composition and in it there are several states of a single character. At second 0 he’s standing still; at second 5 he’s running; at second 10 he’s jumping. You get the drift.
I’d like to find a way of nesting that comp and playing each of those sections using a slider. For example, when the slider changes from 0 to 1, it starts playing the running frames. When it changes from 1 to 2, he jumps. Then from 2 to 0, he’s standing still. Each time I change the value of the slider, it plays a different section until the next slider value is changed.
I know I need to somehow link my time remapping to the slider, but I can’t get it to continue playing until the next slider value changes.
Would love some help if someone has an idea!
-
Chris Thomas
December 7, 2017 at 9:01 pmAfter quite some digging, I found a script that will allow you to trigger different parts of a comp via markers:
< a href=”https://www.laconic4d.com/portfolio/trigger-animations-with-markers/” target=”new”>https://www.laconic4d.com/portfolio/trigger-animations-with-markers/
Works great!
C
Log in to reply.