-
Control Scale with a Null
Hi there! I used to use this expression to control an objects scale with a Null but it no longer works in CC2023:
AE says: Line 7 (dis = length…) is at fault. Has the expression language changed?
mouse_layer = thisComp.layer(“Scale_Control”);//Mouse layer
beginScale = [100,100]; //
endScale = [50,50]; //
beginDistance = 200;//Distance to begin magnifying in pixels
endDistance = 0;//Distance to end magnifying in pixels
//–Don’t modify below here
dis = length(this.position, mouse_layer.position);
ease(dis, beginDistance, endDistance, endScale, beginScale);