-
Using a Text layer to point to any slider’s value in a project
I wanted to use one text layer to point to any comp, layer and effect (slider) for another text layer’s value within a project.
I was wondering if I could use a text layer as part of the expression to tell after effects which composition name and layer to get the slider value from.
I’ve managed to get everything working, but AE evaluates the result as a text layer, instead of the actual Slider-Value.
i managed to do it by basically telling it to do part1+part2+part3+part4 and displaying the result. As I mentioned, it displays the path to the comp, the layer, the effect, and the name “Slider”, instead of the slider’s value.
I tried using $.evalFile, but I got the same results (AE displays the path instead of the value of that slider)
Sorry this is a really confusing question.
pointer = thisComp.layer("Pointer")("Text")(Source Text");
part1 = """comp("""";
part2 = """").layer("""";
part3 = """_Value").effect("""";
part4 = """_Driver_Value("Slider").value""";
val = part1 + pointer + part2 + pointer + part3 + pointer + part4;