FORUMS: list search recent posts

Return actual Rotation from a layer Auto-Oriented along path

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Mikael Holmström
Return actual Rotation from a layer Auto-Oriented along path
on Jun 30, 2016 at 7:17:47 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


Return to posts index

Kalle Kannisto
Re: Return actual Rotation from a layer Auto-Oriented along path
on Jun 30, 2016 at 8:27:02 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]))


Return to posts index

Mikael Holmström
Re: Return actual Rotation from a layer Auto-Oriented along path
on Jun 30, 2016 at 9:06:07 pm

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


Return to posts index


Walter Soyka
Re: Return actual Rotation from a layer Auto-Oriented along path
on Jun 30, 2016 at 9:52:38 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 [twitter]   |   RenderBreak [blog]   |   Profile [LinkedIn]


Return to posts index

Mikael Holmström
Re: Return actual Rotation from a layer Auto-Oriented along path
on Jun 30, 2016 at 9:55:39 pm

It works like magic, thanks!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]