Skip to main content
Participant
May 20, 2022
Question

Looking for an existing script : using the surface of layer as a property instruction

  • May 20, 2022
  • 1 reply
  • 118 views

Hey i can't find a script i heard about few years ago. It gives you the opportunity to have let's say a square layer, and moving it in front of multiple layers, it affect any property of them like scale or opacity. Animating the animator square layer's position would create a delayed animation of the multiple layers in the back. Does

it reminds you of something ? Thanks !!

 

This topic has been closed for replies.

1 reply

Mylenium
Legend
May 20, 2022

Probably some sort of proximity based animation measuring the distances of the objects. Easy to re-create using basic expressions. A simple example could be something liek this:

 

mTrig=thisComp.layer("Square");

mDist=length(mTrig.transform.position,thisLayer.position);

 

mScale=linear(mDist,0,500,0,100);

 

[mScale,mScale]

 

This would be applied to the scale of the layers to be modified. For other properties it would need to be modified of course.

 

Mylenium