Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Trigonometry question

  • Andreas Brand

    September 6, 2018 at 9:51 am

    If the tip of the triangle is pointing to the middle of the red rectangle and the angular is really 45 degrees (it looks like 90 degrees) it should be something like this:

    Math.tan(90-(45/2)) * (450/2)

    If the angular of the red rectangle is 90 degrees it should be this:

    Math.tan(45) * (450/2)

  • Ilya Sire

    September 6, 2018 at 4:30 pm

    Thank you for your reply, im sorry i miss explain about the angle degree
    please take a look this aep file. Maybe it can help abit with the question
    12694_angletrigonometrycc12.aep.zip

    the Red box is actually a square with the anchor point top right, rotation 45, position at the edge of the blue box size
    the blue box height, width is dynamic sized

    I wanted to understand this, is there any tutorial to explain this?
    Thank you very much

  • Dan Ebberts

    September 6, 2018 at 4:40 pm

    In both of your examples, the distance you’re looking for should be half the height of the blue rectangle.

    Dan

  • Ilya Sire

    September 6, 2018 at 4:55 pm

    duhhh!! right, it was right there.
    Thanks all for helping

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