Skip to content

Instantly share code, notes, and snippets.

@thatsmadden
Last active September 5, 2022 01:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thatsmadden/06e55520953b33f34f2d to your computer and use it in GitHub Desktop.
Save thatsmadden/06e55520953b33f34f2d to your computer and use it in GitHub Desktop.
Place an After Effects Null between two other Nulls and drive that placement with a slider. Goes in the Position property of a layer.
a=thisComp.layer("NullA").toWorld([0,0,0]);
b=thisComp.layer("NullB").toWorld([0,0,0]);
wh=thisLayer.effect("weight")("Slider");
aW=a*wh;
bW=b*(1-wh);
aW+bW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment