Changes any value of a layer based on the position
Contributed by:
if (position[1] > 500) { value * 0.5; } else { value; }
Change Value Based On Position
Practical use case
Changing the opacity of a layer if it crosses a certaing position.
Check out similar expressions
Conditional
Days Until Date Counter
Essential for creating "Countdown to Christmas" graphics, product launch timers, or event reminders in social media templates that need to remain accurate.
Ideal for video templates and automation setups with multiple aspect ratios. Ensures text always fits within the comp without needing to adjust anything manually across versions.