Scroll control

Moderators: Disciple, zlovatt

Post Reply
User avatar
Şanssız
Posts: 1
Joined: August 15th, 2013, 4:56 am

December 13th, 2014, 3:56 pm

I have to scroll horizontally over a very wide time line where I make a few stops. The preview's terrible and key framing is therefore very difficult which makes me think this could be easy with a null and an expression but I'm a total n00b to this stuff. :)

I made this:

Code: Select all

temp = effect("Tempo")("Slider");
xPos = value[0] + (time * (temp * -10));
yPos = 540;
[xPos, yPos];
And tweaked a code to add slider control I found on this forum:

Code: Select all

temp = effect("Tempo")("Slider");
intPixelsPerSecond = temp * 100;
x=position[0]-((time-inPoint)*intPixelsPerSecond);
if (temp = 0){
[position[0],position[1]];
}else{ [x,position[1]] ; } 
They would be great if it wasn't for the stops, because both return to the starting position when I set the slider to 0 to stop. Logical if I think about it but the thing is I want to continue after a stop of a few seconds.

Anybody know how to do this? Seems easy but could also be way more difficult. :)
Post Reply