Restricts a property’s value within a specified range.
Contributed by:
clamp(value, minValue, maxValue)
Clamp Expression
Practical use case
Ensuring that a layer's scale never goes below 50% or above 150%, no matter what animations or adjustments you apply.
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.