ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Dynamically targeting layers with the index property

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Oleg Pirogov
Re: Dynamically targeting layers with the index property
on Jun 21, 2019 at 6:42:21 am

You're telling layer 1 to move where layer 2 is ([...].transform.position). So, since layer 2 goes to layer 3, layer 1 also goes there.
Instead, you'd wanna layer 1 to go to former position of layer 2, so [...].transform.position.valueAtTime(0) may be the solution:

ease(time, 0, 2, value, thisComp.layer(index + 1).transform.position.valueAtTime(0))

P.S. [...](0) - zero here is "the time when layer 2 was at the position you want layer 2 to go to". If it's some other time in your case, you should change it accordingly.


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]