Ok figuered it out myself! My idiotic self thought I could change a value of a property in another layer than the expression is in…
Ofcourse I have this on my slider now (I have a slider with the same name on every layer):
thisComp.layer(index+1).effect(“Einstellungen für Schieberegler”)(“Schieberegler”) + 1;
and this on the positon:
timeToStop = effect(“Einstellungen für Schieberegler”)(“Schieberegler”);
xOffset = easeIn(time,timeToStop,timeToStop+1,0,250);
thisComp.layer(index+1).transform.position.valueAtTime(time-1) + [xOffset,0];
The last two lines don’t have anything to do with my problem really, but I included them anyways.
This works great for me now. Maybe this will help another beginner so he/she doesn’t have to spend hours trying to figure it out (even though that is half the fun ;))
Thanks,
Adrian