How to use a pulse mask to scale a diamond grid?
Hello,
I am trying to create a effect on a diamond grid which scales when a pulse mask runs over the individual shapes and then returns back to their orignal size.
You can see the thick white pulse below:

I am followed a tutorial of the effect I want to achieve however, in his example he used two points between a null layer and the shape to determined the scale.
Here is the expression he used:
var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Gradient").transform.position;
var ScaleFrom = thisComp.layer("Slider Controls").effect("Scale From")("Slider");
var ScaleTo = thisComp.layer("Slider Controls").effect("Scale To")("Slider");
var HitIn = thisComp.layer("Slider Controls").effect("Hitbox Inside")("Slider");
var HitOut = thisComp.layer("Slider Controls").effect("Hitbox Outside")("Slider"); var d = length(p1,p2);
var r = linear(d,HitOut,HitIn,ScaleFrom,ScaleTo); [r,r]
And here is the tutorial:
https://www.youtube.com/watch?v=BIwppXzHErY&t=215s
Time stamp: 1:59-4:49
I am wondering if anyone knows how to change the expression to use my pulse mask instead of the two points?
Thanks
