FORUMS: list search recent posts

Layer markers trigger alternating scale values with easing.

FAQ   •   VIEW ALL
 Layer markers trigger alternating scale values with easing. on Nov 30, 2016 at 5:14:46 pm

Hello all,

Let's say the layer has a 'natural' value of 100%

at the first layer marker this value jumps up to 150% over 5 frames (easy eased)
at the second layer marker the value returns back to its natural value of 100% (again, over 5 frames eased)
at the third layer marker the value jumps to 150% (over 5 frames eased)

and so on...

I've seen a few useful expressions that use layer markers to trigger changes in value, but haven't found anything that alternates between the original value and one generated by an expression.

Wal.

http://www.wrbl.tumblr.com

 Re: Layer markers trigger alternating scale values with easing.on Nov 30, 2016 at 5:47:11 pm

Something like this probably:

``` easeTime = framesToTime(5); n = 0; m = marker; if (m.numKeys > 0){ n = m.nearestKey(time).index; if (m.key(n).time > time)n--; } if (n > 0){ t = time - m.key(n).time; if (n%2){ ease(t,0,easeTime,value,[150,150]); }else{ ease(t,0,easeTime,[150,150],value); } }else value ```

Dan

 Re: Layer markers trigger alternating scale values with easing.on Nov 30, 2016 at 5:55:35 pm

Dan,

You're a star..! Thank you very much indeed.

Wal.

http://www.wrbl.tumblr.com