Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Return actual Rotation from a layer Auto-Oriented along path

  • Return actual Rotation from a layer Auto-Oriented along path

    Posted by Mikael Holmström on June 30, 2016 at 7:17 pm

    Hi all,

    I would like to inherit the actual Rotation value from a layer that is Auto-Oriented along a path onto the rotation property of another layer. I would like this to happen with a small delay. I have tried:

    thisComp(layer(”Auto-Oriented_layer”).transform.rotation.valueAtTime(time-i))

    but it doesn’t consider the rotation that is caused by the Auto-Orientation mode.

    Thanks,
    Mikael

    Mikael Holmström replied 10 years, 1 month ago 3 Members · 4 Replies
  • 4 Replies
  • Kalleheikki Kannisto

    June 30, 2016 at 8:27 pm

    This Dan Ebberts expression gives you the rotation value, just need to modify it with valueAtTime()

    L = thisComp.layer("Auto-Oriented_layer");
    v = L.toWorldVec([1,0]);
    radiansToDegrees(Math.atan2(v[1],v[0]))

  • Mikael Holmström

    June 30, 2016 at 9:06 pm

    Thank you. Do you have an idea where to put the ValueAtTime() to make it work?

  • Walter Soyka

    June 30, 2016 at 9:52 pm

    toWorldVec takes time as an optional second parameter.

    Walter Soyka
    Designer & Mad Scientist at Keen Live [link]
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    @keenlive   |   RenderBreak [blog]   |   Profile [LinkedIn]

  • Mikael Holmström

    June 30, 2016 at 9:55 pm

    It works like magic, thanks!

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