ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Link multiple keyframes to markers

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gonzalo Tórtola
Link multiple keyframes to markers
on Dec 14, 2016 at 9:39:28 pm
Last Edited By Gonzalo Tórtola on Dec 14, 2016 at 11:10:58 pm

Hey there! I was searching a lot how to solve my issue, this post (https://forums.creativecow.net/thread/227/29092) gave me the most approx. answer of what I was looking for. If someone could help me on writing the script would be great. Thanks!



This is the script I was using:

L = thisComp.layer("Title");
if ((L.marker.numKeys > 1 ) && (numKeys > 3)){
dIn = key(2).time - key(1).time;
dOut = key(4).time - key(3).time;
tIn = L.marker.key(1).time;
tOut = L.marker.key(2).time;
if (time &lt; L.marker.key(2).time)
linear(time,tIn-dIn,tIn,key(1).value,key(2).value)
else
linear(time,tOut,tOut+dOut,key(3).value,key(4).value);
}else
value


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]