#3476: Grid: Border takes After Effects' range

Border takes 0..2000, After Effects' recorded valid range in the same units
(pixels). The CPU and GPU renderers compute the border per pixel in closed
form, so a wider border costs the same; one wider than the cells covers
them.
Default and slider are unchanged.
This commit is contained in:
arnav-hiwarkar committed 2026-11-12 15:47:14 +05:30
1 parent ce4db78896
commit 85f47ec072
3 files changed
+2 -2

No files matched your search

-1
View File
@@ -741,7 +741,6 @@ mod tests {
("ec.transition.radialwipe", "feather", 3474),
("ec.generate.beam", "startThickness", 3475),
("ec.generate.beam", "endThickness", 3475),
("ec.generate.grid", "border", 3476),
("ec.stylize.scatter", "amount", 3477),
("ec.time.pixelmotionblur", "shutterAngle", 3481),
("ec.time.pixelmotionblur", "shutterSamples", 3482),
+1 -1
View File
@@ -391,7 +391,7 @@ pub fn specs() -> Vec<EffectSpec> {
p("corner", "Corner", pt(0.1, 0.1), ParamUi::Point),
p("width", "Width", num(64.0), slider(1.0, 4000.0, 1.0, 400.0, 1)),
p("height", "Height", num(64.0), slider(1.0, 4000.0, 1.0, 400.0, 1)),
p("border", "Border", num(2.0), slider(0.0, 400.0, 0.0, 40.0, 1)),
p("border", "Border", num(2.0), slider(0.0, 2000.0, 0.0, 40.0, 1)),
p("feather/featherWidth", "Width", num(0.0), slider(0.0, 1000.0, 0.0, 50.0, 1)),
p("feather/featherHeight", "Height", num(0.0), slider(0.0, 1000.0, 0.0, 50.0, 1)),
p("invertGrid", "Invert Grid", Value::Bool(false), ParamUi::Checkbox),
+1
View File
@@ -50,6 +50,7 @@ const ROWS: &[(u32, &str, &str, f64, f64)] = &[
(3483, "ec.noise.noisehlsauto", "saturation", 0.0, 1000.0),
(3484, "ec.noise.noisehlsauto", "grainSize", 0.0, 100.0),
(3480, "ec.color.changecolor", "hueTransform", -1800.0, 1800.0),
(3476, "ec.generate.grid", "border", 0.0, 2000.0),
];
fn path(effect: &str, param: &str) -> String {