ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

control in and out with SLIDER

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ehsan Adham
control in and out with SLIDER
on Nov 27, 2019 at 5:46:44 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


Return to posts index

Andrei Popa
Re: control in and out with SLIDER
on Nov 28, 2019 at 12:37:31 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.


Return to posts index

Ehsan Adham
Re: control in and out with SLIDER
on Nov 28, 2019 at 1:34:25 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 :)


Return to posts index


Ehsan Adham
Re: control in and out with SLIDER
on Nov 29, 2019 at 11:52:46 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 :)


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]