Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Get rotation value of layer that is oriented along path

  • Alex Printz

    September 3, 2019 at 4:06 pm

    L should be the layer you want to target that is orientated to a path:

    L=thisComp.layer("LayerOrientatedToPath");
    v = L.toWorldVec([1,0,0]);
    if(hasParent) v = parent.fromWorldVec(v);
    radiansToDegrees(Math.atan2(v[1],v[0]))

    Alex Printz
    Mograph Designer

  • Padraic Rapp

    September 5, 2019 at 11:30 am

    Hey Alex,

    I feel like an idiot for completely forgetting about ‘WorldVec’. Thank you very much, worked like a charm!

    Paddy

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