Skip to content

Instantly share code, notes, and snippets.

@animoplex
Created March 6, 2019 05:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save animoplex/a40e82c808ee785312b757b40705bcbd to your computer and use it in GitHub Desktop.
Save animoplex/a40e82c808ee785312b757b40705bcbd to your computer and use it in GitHub Desktop.
Linear Counterbalance
// Linear Counterbalance
s = thisComp.layer("Control").effect("Slider Control")("Slider");
a = transform.position;
b = thisComp.layer("Null").toWorld([0,0,0]);
linear(s, 0, 100, a, b)
// Adjust a Slider Control (from 0 to 100) to balance between two values (a and b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment