Discussion:
Using clip markers to drive layer opacity
(too old to reply)
i***@adobeforums.com
2008-07-11 15:37:08 UTC
Permalink
Thanks! Thanks almost it. The only thing is, I'd like it to reference markers on ANOTHER layer, rather than the current layer, how would I do that?

Also, let's say I wanted to use the same markers to increment the value of the Numbers effect each time a marker hit. How would I do that?
D***@adobeforums.com
2008-07-11 15:10:08 UTC
Permalink
This should work:

if (marker.numKeys > 0){
if (Math.abs(marker.nearestKey(time).time - time) <= thisComp.frameDuration*1.1){ 100 }else{ 0 } }else{ 0 }

Dan
D***@adobeforums.com
2008-07-11 16:07:01 UTC
Permalink
// expression 1

L = thisComp.layer("footage");
if (L.marker.numKeys > 0){
if (Math.abs(L.marker.nearestKey(time).time - time) <= thisComp.frameDuration*1.1){ 100 }else{ 0 } }else{ 0 }

// expression 2

L = thisComp.layer("footage");
n = 0;
if (L.marker.numKeys > 0){
n = L.marker.nearestKey(time).index;
if (L.marker.key(n).time > time + thisComp.frameDuration*1.1){
n--;
}
}
n

Dan
i***@adobeforums.com
2008-07-11 16:36:48 UTC
Permalink
Dan, you're a wizard, as usual!

Loading...