ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

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


Sohrab Golestani
Dynamically targeting layers with the index property
on Jun 20, 2019 at 10:00:25 pm

I have a .png that has been split up into a grid of segments using Utility Box v1.6 - each segment is one composition/layer. I want to scramble the image by rearranging the segments randomly. To do so, I rearranged the layers randomly, and I want to use an ease expression to move the layer from its existing position to the position of the layer under it:

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

This works great when I put it on layer 1 - it moves from its position to the position of layer 2 over 2 seconds. Great.

When I copy that expression to layer 2, both layer 1 and layer 2 move to layer 3's position.

Is there a way to get after effects to evaluate the expressions independently?

Thanks,

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


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]