Expressions/Scripts/Presets

Moderators: Disciple, zlovatt

 
User avatar
Şanssız
Topic Author
Posts: 1
Joined: Thu Aug 15, 2013 4:56 am

Scroll control

Sat Dec 13, 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:

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:

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. :)

Who is online

Users browsing this forum: No registered users and 1 guest