Forum Replies Created

  • Thanks Frank for that but it doesnt quite fit my needs.

    This is my base equation:

    Line = length(toWorld(anchorPoint), thisComp.layer(“Null 1”).transform.position);
    delta = toWorld(anchorPoint) – thisComp.layer(“Null 1”).toWorld([0,0,0]);
    radiansToDegrees(Math.atan2(delta[0],-delta[1]))

    But i need it to react so that the further away it is from the X and Y axis the more accurate the direction of line is. And vice versa.

    So i extended it to this:

    YNull = length(toWorld(anchorPoint), thisComp.layer(“Null 1”).transform.yPosition);
    XNull = length(toWorld(anchorPoint), thisComp.layer(“Null 1”).transform.xPosition);
    Line = length(toWorld(anchorPoint), thisComp.layer(“Null 1”).transform.position);
    delta = toWorld(anchorPoint) – thisComp.layer(“Null 1”).toWorld([0,0,0]);
    radiansToDegrees(Math.atan2(delta[0],-delta[1]))*(Math.atan2(ease(YNull,740,850,3,1), ease(XNull,390,500,3,1)))

    But now it will not follow my Null layer correctly. I will attach a picture below of both expressions results.

    You may notice a grey opacity and that is where the lines should be to fit the design.

    BASE EXPRESSION:

    EXTENDED:

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy