Alright, thanks for the help, that was what i was searching for.
But it seems like what i’m trying to do is much more complicated than I thought it would be. The problem is: By connecting the playback speed of twixtor to the speed of my 3D-camera, after the first frame nothing fits anymore because the playback speed was adjusted, so frame 2 is not frame 2 of my original footage anymore.
An example to make clear my problem: if my expression adjusts the playback speed to 50% on the first 9 frames, the 10th frame is the 5th frame of my original footage, so i also have to look at the camera speed at frame 5 and not frame 10.
I tried to fix this problem by summing up the playback-speed-values in order to calculate the frame, at which the expression looks at the cameraspeed, but it seems i’m doing something wrong.
I heard the expression language is based on javascript, so I tried a for-loop, maybe that’s my mistake? Is this even possible in After Effects?
This is my latest try (it also gives me an error in the last line, but i don’t know why):
(explanation: the values of the camera-speed are saved in the v_cam-slider and my project is in 50fps, that’s were the 0.02 come from.)
My brain really hurts of thinking of this stuff, it would be so great if someone could try helping me with this!!!
Thanks, Noah
x = thisComp.layer("values").effect("x")("slider");
timeSum = 0;
for (i=0; i<time; i=i+0.02){
timeSum= timeSum+((effect("Twixtor")("Speed %").valueAtTime(i))/100);
}
(x/(thisComp.layer("Werte").effect("v_cam")("slider").valueAtTime(timeSum*0.02)));