ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Toggle Hold value between keyframes?

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Ronan De Lacy
Toggle Hold value between keyframes?
on Mar 11, 2019 at 11:54:56 am

Hello all,

I have a text layer, that's set up to pull data from a text file. I'm taking values from sliders on separate layers to each keyframe on the timeline.

Everything is working, however, the value animates between the keyframes, and I'd like it to to snap at each keyframe. I have toggle hold keyframes applied, but they're being over ridden by the expression.

Any ideas on how I may be able to achieve this? see expression below.

Many thanks,
Ronan

key1 = thisComp.layer("range-1").effect("Slider Control")("Slider");
key2 = thisComp.layer("range-2").effect("Slider Control")("Slider");
if(numKeys > 1){
linear(time,key(1).time,key(2).time,key1,key2);
}else{
key1;
}


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]