Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- src = comp(name).layer("Control");
- n = 0;
- if (marker.numKeys > 0) {
- n = marker.nearestKey(time).index;
- if (marker.key(n).time > time) {
- n--;
- }
- }
- if (n == 0) {
- 0
- } else {
- m = marker.key(n);
- myComment = m.comment;
- t = time - m.time;
- try {
- mark = src.marker.key(myComment);
- if (src.marker.numKeys > mark.index) {
- tMax = src.marker.key(mark.index + 1).time - mark.time;
- } else {
- tMax = src.outPoint - mark.time;
- }
- t = Math.min(t, tMax);
- mark.time + t;
- }catch (err) {
- 0
- }
- }
- // Dan Ebbert's Expression
- // https://www.motionscript.com/design-guide/marker-sync.html
Advertisement
Comments
-
- Hi, is there a way to loop out the animation between the markers?
- I know I can do that by repeating the marker but is there a way to loop out one marker's animation till we add another one?
Add Comment
Please, Sign In to add comment
Advertisement