facebook pixel
Expression n.3 Directional Angle Based Rotation. This expression calculates the angle between a layer and a target layer, adjusting the layer’s rotation dynamically to always face towards the target. As the target layer moves, the layer with this expression will rotate, keeping it aligned in the direction of the target. //apply on Rotation property var targetLayer = thisComp.layer(“Shape Layer 2”); var target = targetLayer ? targetLayer.transform.position : [0, 0]; var myPos = thisLayer.transform.position; var angle = Math.atan2(target[1] - myPos[1], target[0] - myPos[0]); var angleDeg = radiansToDegrees(angle); angleDeg + 90; Find more: YouTube bit.ly/3AcQQeT workingFiles.Scripts bit.ly/3ZJmGu2 #AfterEffects #AETips #MotionDesign #ExpressionMagic #DirectionalRotation #LayerAlignment #DesignTutorial #MotionGraphics #AnimationTips #CreativeEffects #AEExpressions #AutoRotation #VisualEffects #LayerTargeting
https://www.instagram.com/p/DB1XCqIM7uW
Posted on Instagram ·

 3.8k

 148

 3.8k

    Suggested Credits

    Credits on Gondola describe each credited role and may be incomplete. A brand or featured person is not necessarily the creator.

    Tags, Events, and Projects