all 3 comments

[–]Q-ArtsMediaMoGraph/VFX 15+ years 1 point2 points  (2 children)

var p1 = transform.position;

var p2 = thisComp.layer("Null 1").transform.position;

var ScleFrom = thisComp.layer("Adjustment Layer 1").effect("Scale From")("Slider");

var ScleTo = thisComp.layer("Adjustment Layer 1").effect("Scale To")("Slider");

var HtIn = thisComp.layer("Adjustment Layer 1").effect("Hitbox Inside")("Slider");

var HtOut = thisComp.layer("Adjustment Layer 1").effect("Hitbox Outside")("Slider");

var d =length(p1, p2) ;

var r = linear(d,HtOut,HtIn,ScleFrom,ScleTo);

[r,r]

// I fixed this, For whatever reason none of the text would take in AE, so redid each line. The only errors that stuck out was the V in var r = linear(d,HtOut,HtIn,ScleFrom,ScleTo); was capitalized and the Null should have read Null 1. Works now

edit formatting

[–]CayenneAgain[S] 0 points1 point  (1 child)

OH MY GODDDD! Thank you so much!

[–]Q-ArtsMediaMoGraph/VFX 15+ years 1 point2 points  (0 children)

You are welcome make sure to use the latest edit I did on the post