Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
closefm
Topic Author
Posts: 1
Joined: Fri Feb 06, 2015 10:23 am

Problems with inPoint/outPoint

Fri Mar 13, 2015 4:18 am

Hi,
I have a shape layer “quad”. Then I pre-composed it to “compQuad”.
Now I want the scale of the “quad” layer to be controlled from the duration of the “compQuad”. So I added a Slider to the “compQuad” with an expression:
upScale = ease(time, inPoint, inPoint + 1, 0, 100);
downScale = ease(time, outPoint - 1, outPoint, 0, -100);
upScale + downScale

Then I added an expression to the scale parameter of the shape layer “quad” to link it to the Slider of the “compQuad”:
s = comp("Comp 1").layer("quadComp").effect("Slider Control")("Slider");
[s, s];

And everything works fine till the composition “compQuad” is on the beginning of the timeline. Problems begin if I move it along the timeline.
The farther the “compQuad” is from the start of the timeline, the later the value of the scale parameter of the “quad” layer is beginning to change. Although the Slider value of the “compQuad” changes correctly.

So the question is how to make the value of the scale change without a delay?

Thanks
Anton

Who is online

Users browsing this forum: No registered users and 5 guests