facebook pixel
Expression n.2 Proximity Based Colour Change. This expression dynamically changes a layer’s color based on its distance from a target layer. As the layer moves closer, the color shifts smoothly to a defined “near” color, and as it moves farther away, it transitions back to the default color. //apply on Fill or Colour properties var targetLayer = thisComp.layer(“Shape Layer 1”); var minDistance = 50; var maxDistance = 200; var nearColor = [0.9373, 0.0275, 0.2902, 1]; var defaultColor = [0.0667, 0.0667, 0.0667, 1]; var distance = length(thisLayer.position, targetLayer.position); linear(distance, minDistance, maxDistance, nearColor, defaultColor); #AfterEffects #AETips #MotionDesign #ExpressionMagic #DynamicColor #ColorTransition #ProximityEffect #DesignTutorial #MotionGraphics #AnimationTips #CreativeEffects #AEExpressions #ColorChange #VisualEffects #LayerInteraction

 6.7k

 326

 6.7k

    Suggested Credits
    Tags, Events, and Projects