-
Create a reference layer for an expression
Hello everybody,
Here is a problem that occurs with my projects quite often. I am working on a project on wihich I have over hundred layers. I have written some expression for the opacity value for the layers, and copied it to all other layers. It’s kinda tedious work. Now I want to change the code, but I have to go through all the layers once again 🙁 Is there a way to get the expression from one layer, like reference to that layer in the expression box? I tried linking to a marker comment, linking to a text layer’s source text, but both don’t seem to work….
Thanks in advance 🙂
thisComp.layer("wiggle(.5,12)").text.sourceTextand this one:
n = 0;
if (thisComp.layer("markers").marker.numKeys > 0){
n = thisComp.layer("markers").marker.nearestKey(time).index;
if (thisComp.layer("markers").marker.key(n).time > time){
n--;
}
}if (n == 0){
"";
}else{
opacity=thisComp.layer("markers").marker.key(n).comment;
}