Effector Names: Radius - Slider Control Radius Strength - Slider Control Scale To - Slider Control Opacity To - Slider Control Rotation XYZ - 3D Point Control Position XYZ - 3D Point Control Color From - Color Control Color To - Color Control Position var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Effector").transform.position; var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var MoveX = thisComp.layer("Effector").effect("Position XYZ")(1)[0]; var MoveY = thisComp.layer("Effector").effect("Position XYZ")(1)[1]; var MoveZ = thisComp.layer("Effector").effect("Position XYZ")(1)[2]; var d = length(p1, p2); var x = linear(d, Radius, RadiusStrength, MoveX, 0); var y = linear(d, Radius, RadiusStrength, MoveY, 0); var z = linear(d, Radius, RadiusStrength, MoveZ, 0); var xPos = p1[0] + x; var yPos = p1[1] + y; var zPos = p1[2] + z; [xPos, yPos, zPos]; Scale var pos1 = thisLayer.transform.position; var pos2 = thisComp.layer("Effector").transform.position; var ValueFrom = transform.scale[0]; var ValueTo = thisComp.layer("Effector").effect("Scale To")(1); var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(pos1, pos2); var finalValue = linear(d, Radius, RadiusStrength, ValueTo, ValueFrom); [finalValue, finalValue, finalValue]; X Rotation: var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Effector").transform.position; var ValueTo = thisComp.layer("Effector").effect("Rotation XYZ")(1)[0]; var ValueFrom = transform.xRotation; var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(p1, p2); var t = linear(d, Radius, RadiusStrength, 0, 1); var r = linear(t, 0, 1, ValueFrom + ValueTo, ValueFrom); r; Y Rotation: var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Effector").transform.position; var ValueTo = thisComp.layer("Effector").effect("Rotation XYZ")(1)[1]; var ValueFrom = transform.yRotation; var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(p1, p2); var t = linear(d, Radius, RadiusStrength, 0, 1); var r = linear(t, 0, 1, ValueFrom + ValueTo, ValueFrom); r; Z Rotation: var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Effector").transform.position; var ValueTo = thisComp.layer("Effector").effect("Rotation XYZ")(1)[2]; var ValueFrom = transform.zRotation; var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(p1, p2); var t = linear(d, Radius, RadiusStrength, 0, 1); var r = linear(t, 0, 1, ValueFrom + ValueTo, ValueFrom); r; Opacity var pos1 = thisLayer.transform.position; var pos2 = thisComp.layer("Effector").transform.position; var ValueFrom = transform.opacity; var ValueTo = thisComp.layer("Effector").effect("Opacity To")(1); var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(pos1, pos2); var finalValue = linear(d, Radius, RadiusStrength, ValueTo, ValueFrom); [finalValue]; Color var p1 = thisLayer.transform.position; var p2 = thisComp.layer("Effector").transform.position; var ColorFrom = thisComp.layer("Effector").effect("Color From")(1); var ColorTo = thisComp.layer("Effector").effect("Color To")(1); var RadiusStrength = thisComp.layer("Effector").effect("Radius Strength")(1); var Radius = thisComp.layer("Effector").effect("Radius")(1); var d = length(p1, p2); var t = linear(d, Radius, RadiusStrength, 0, 1); var r = linear(t, 0, 1, ColorTo[0], ColorFrom[0]); var g = linear(t, 0, 1, ColorTo[1], ColorFrom[1]); var b = linear(t, 0, 1, ColorTo[2], ColorFrom[2]); [r, g, b, 1]; 3D to 2D Position Mapping temp = thisComp.layer("Effector").toComp([0, 0, 0]); [temp[0], temp[1]];