ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

self referencing valueAtTime Problem

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Ludwig Tomaschko
self referencing valueAtTime Problem
on Jul 28, 2018 at 1:01:03 pm

Hi!

I have an object and its scale is driven by expressions.

i have the scale value at second 4 ------------ .valueAtTime(4),
then I'm doing some calculations with it and i'm adding it to itself at second 6.

because the expression is influencing the scale at second 4 too, AE is making trouble.

is there a way to say AE: don't affect values in the past?

thanks in advance!


Return to posts index

Andreas Brand
Re: self referencing valueAtTime Problem
on Jul 28, 2018 at 2:36:50 pm

Hello Ludwig

I’m not pretty sure if I understand you right.

I think you can’t reference with the same expression to the valueAtTime from another second. Because AE reads the expression every frame new.

I would do it like this:

if(time>=6){
//var scale4seconds = calculations which should affect only the scale before second six
// scale4seconds + newCalculations
}else{
// do the calculations which should only affect the scale before second 6
}


Return to posts index

Ludwig Tomaschko
Re: self referencing valueAtTime Problem
on Jul 28, 2018 at 7:56:43 pm

Hi Andreas!

I can not test it right now, but i think this will make it.
It didn't come to mind to put in in an if/else statement.

I'll give it a try when I'm on the computer,

THANK YOU!!!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]