Wednesday, August 10, 2022

Maintain stroke width when scaling

Apply this expression to the Stroke Width property of any shape layer to maintain the visual thickness of the stroke, no matter what scaling is applied to the layer.

value / length(toComp([0,0]), toComp([0.7071,0.7071])) || 0.001; 

Thursday, August 4, 2022

LoopOut for After Effects Paths

 LoopOut does not work for path layer animations. Use this instead:


if (numKeys > 1 && time > key(numKeys).time){
  t1 = key(1).time;
  t2 = key(numKeys).time;
  span = t2 - t1;
  delta = time - t2;
  t = delta%span;
  valueAtTime(t1 + t);
}else
  value