Explore
Creators
Teams
Jobs
Loading post...
Instagram
@masd.lab
Share
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
Posted on Instagram at
11/1/2024, 3:27:24 PM
3.8k
148
3.8k
3.8k
148
3.8k
Suggested Credits
Add A Credit
Tags, Events, and Projects
directionalrotation
layeralignment
expressionmagic
creativeeffects
autorotation
aeexpressions
visualeffects
aetips
designtutorial
aftereffects
motiongraphics
motiondesign
layertargeting
animationtips
Add tag
Add event / campaign