Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Forums Adobe After Effects Expressions control in and out with SLIDER

  • control in and out with SLIDER

  • Ehsan Adham

    November 27, 2019 at 5:46 pm

    Hi everyone
    How do I control the duration of layer with slider?

    I have 3 Text layers called Text A, Text B and Text C. (Text A 00:00 to 00:01, Text B 00:01 to 00:02 and Text C 00:02 to 00:03 )

    I want to do this:
    ___1. i want to Change duration of TEXT A From 0:0-0:01 to 0:0-0:03 with the slider Control or something else.
    ___2. i want other text layer move automatically next of Text A

  • Andrei Popa

    November 28, 2019 at 12:37 pm

    You can’t move layers with expression. But i think you could do this:

    Set all layers start point and end point equal.
    Make 3 sliders(duration of A, B and C);

    So let’s say you have the “Controls” layer that has 3 sliders, “Text A”, “Text B” and “Text C”.

    Write this in the opacity expressions of the layers.

    Text A

    s = inPoint;
    d = thisComp.layer("Controls").effect("duration A")("Slider");
    (time > s && time < s+d) ? value : 0;

    Text B

    s = inPoint+thisComp.layer("Controls").effect("duration A")("Slider");
    d = thisComp.layer("Controls").effect("duration B")("Slider");
    (time > s && time < s+d) ? value : 0;

    Text C

    s = inPoint+thisComp.layer("Controls").effect("duration A")("Slider")+thisComp.layer("Controls").effect("duration B")("Slider");
    d = thisComp.layer("Controls").effect("duration C")("Slider");
    (time > s && time < s+d) ? value : 0;

    Andrei
    My Envato portfolio.

  • Ehsan Adham

    November 28, 2019 at 1:34 pm

    Tanks

    But now layer be appear 0-100. how can control opacity or position with this.

    for example now i can control that layer text a appear in for example 00:03
    but i wanna it be slow appear like 00:02=opacity:0 till 00:03 opacity: 100

    mean slow appearing 🙂

  • Ehsan Adham

    November 29, 2019 at 11:52 am

    Tanks

    But now layer be appear 0-100. how can control opacity or position with this.

    for example now i can control that layer text a appear in for example 00:03
    but i wanna it be slow appear like 00:02=opacity:0 till 00:03 opacity: 100

    mean slow appearing 🙂

Viewing 1 - 4 of 4 posts

Log in to reply.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy