After Effects exp: valueAtTime()
- Started
- Last post
- 2 Responses
- CyBrainX0
I never got valueAtTime to work. I readjusted my code to require two if statements. It's more logical this way anyway.
- CyBrainX0
Sorry about what qbn did to my code.
Look here.http://talesfromthehead.com/rand…
I'm not sure why I even need that second if statement. All I'm trying to do is to have to do nothing from 1 to 3 seconds. If I remove that if block I get an error.
- CyBrainX
I have this script that doesn't work. The second if statement's valueAtTime won't do anything. I have looked up a few references that say this is correct syntax.
xDestination = thisComp.width - 100;
transitionInTime = 1;
transitionOutTime = 0.5if (time <= 1) { xPos = easeOut (time, inPoint, (inPoint + transitionInTime), 100, (thisComp.width)); [xPos, value[1]]; } if (time >1 && time <= 3) { //[xPos, value[1]]; thisLayer.position.valueAtTime(transitionInTime); } if (time > 3) {
xPos = easeIn (time, outPoint, (outPoint - transitionOutTime), (thisComp.width), 100);
[xPos, value[1]];
}