my collegue here in the office;-)
if (thisComp.layer(“Green Solid 3”).position[0,1] > thisComp.layer(“Null 10”).position[0,1]) {
radiansToDegrees(Math.acos(dot(normalize(sub(thisComp.layer(“Green Solid 3”).position,thisComp.layer(“Null 10”).position)),[1,0,0])))}
else {360-radiansToDegrees(Math.acos(dot(normalize(sub(thisComp.layer(“Green Solid 3”).position,thisComp.layer(“Null 10”).position)),[1,0,0])))}
don