![]() TL DR copy and paste the above expression on the drop shadow effect’s direction property. In After Effects, this is usually found in the 'Effects & Presets' panel. Access Layer Styles: Locate the 'Layer Styles' option. Select the Layer: Identify the layer to which you want to apply a drop shadow effect. Put it all together and you get this rather ugly looking thing: radiansToDegrees(Math.atan2(toCompVec(), toCompVec())) Open After Effects Template: Open the After Effects template you want to work with to add drop shadows. This is expressed in radians, so to make it useful for the drop-shadow direction control we use radiansToDegrees to turn it into degrees. If the vector you give it is the unit vector along the x axis of the layer (i.e the vector ) the result can be fed into the atan2 function to return the rotation of the layer in relation to the world. So it translates an arbitrary layer vector into comp space. What toCompVec does is to give you the composition equivalent for a given vector on your layer. The first and biggest problem that I see is the direction of the shadow. That’s where the slightly mystifying toCompVec expression comes in. ![]() So we have to find their orientation in comp-space. But for layers that have parents or that are auto-oriented this won’t work. Simple enough, it compensates for the layer’s rotation by substracting it from the desired value. Normally to keep the drop shadow of a rotating element correctly aligned I use this on the direction property: value. Instant crowd scene!īut I want them to have a drop shadow. ![]() I have some background elements that I want to wander around, and because I’m lazy I don’t want to hand animate them, so they just have a wiggle expression applied to their position channel and auto-orient switched on.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |