-
Slider to control time remapping
For the animation of a person’s face, I’ve created a series of mouths in different positions (6 to be exact) and precomped them, with a different mouth on each frame. I wanted to add a slider controller to make switching between them easier.
So, I made a null, named it FaceControl, added a slider to that layer and named it Mouth. Then I added a Time Remap to the mouths layer and added this expression to it:
sliderPos = thisComp.layer(“FaceControl”).effect(“Mouth”)(“Slider”);
[(Math.round(sliderPos))]The problem is if I change the slider to any number bigger than zero, the mouth layer jumps to the last mouth (6).
What am I doing wrong here?