Log in

View Full Version : How to animate a Gradation filter?


rgr
26th December 2025, 23:24
I'm looking for a way to animate a filter that will gradually boost my gamma curve.

There are Gradation and ApplyGradationCurves filters, but I don't think they can be animated with this instruction.

Any ideas on how to do this?

Animate(75000,90000,Gradation,"yuv","gamma",[16,16],[40,40],[128,128],[235,235],"yuv","gamma",[16,16],[40,60],[128,135],[235,235])

magiblot
27th December 2025, 12:45
Hi! I don't know if this can be done with Animate, but here's a fade-out example using ScriptClip:


ColorBars(pixel_type="RGB32").RGBAdjust(ab=255)
Trim(0, 100)
ScriptClip(function [] (clip c) {
interpolated = current_frame*255/FrameCount()
Gradation(
\ process="rgb",
\ curve_type="linear",
\ points=[[[0, 0], [255, 255 - interpolated]]]
\ )
})