-
Luma Effector Map to Scale Shape
Hi there!
I using this expression to scale shapes when a Luma Comp matches them in space.
My question is How the script could affect only in the scale Y axis, not in both?
Thank you!!
Gvar map = thisComp.layer("Luma_Effector");
var pos = map.fromWorld(toWorld(anchorPoint));
var sample = map.sampleImage([pos[0], pos[1]], [1, 1], true);
var mapValue = linear((sample[0] + sample[1] + sample[2]) / 3, map.effect("Scale All Low Value")("Slider"), map.effect("Scale All High Value")("Slider"));
[mapValue, mapValue];