Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Drop shadow without affecting layer transparency

  • Drop shadow without affecting layer transparency

    Posted by Nick Matthews on March 3, 2014 at 10:47 pm

    Say I have a rectangular Shape layer set to 70% opacity. I would like to apply a darker shadow all around the edges to separate it from the background, without the shadow showing through the opacity of the shape layer, darkening it.

    The only way I can think to do it is to duplicate the object twice, apply a drop shadow (0 distance with Softness ramped up) to one of them, use the second copy as alpha to cut a hole in the figure of the Shape layer, then leave the third on top untouched.

    I would rather not do it like this, because my actual comps have far too much in them and it would bog down preview/render time (I would like to keep it procedural, because I will be changing the shape/size of what needs the shadow).

    Does that make sense?

    Walter Soyka replied 7 years, 9 months ago 5 Members · 10 Replies
  • 10 Replies
  • Mike Sevigny

    March 4, 2014 at 12:36 am

    hey Nick,
    Two things that might help,

    1. When you set the ‘cast shadows’ to ‘on’, click on the word ‘on’ one more time to set it to ‘only’. Now only the shadows will cast.

    2. If you’re not using the raytrace engine with 3D layers then you can try to simply add a drop shadow layer style. Right click on your shape layer, go to ‘Layer Styles’ and select drop shadow. Your settings are in the timeline.

    Mike Sevigny
    TorusFX Inc.
    https://www.torusfx.com
    https://www.linkedin.com/pub/mike-sevigny/49/875/495

  • Erik Waluska

    March 4, 2014 at 4:03 am

    Just a warning, layer styles can wreak havoc in 3D comps, doing all sorts of weird things that make no sense. Or at least up until CS6. If you do try that and things start going all hinky, then delete the “layer styles” from all of the layers in the comp. Just turning them off doesn’t do it.

    Erik Waluska
    EAWmedia

  • Nick Matthews

    March 4, 2014 at 4:53 am

    Thank you both for your efforts, but unless I am misinterpreting the suggestions I think I will have to get a bit more specific. See image.

    I only mentioned the shape layer to keep my explanation simple, but the reality is a bit more complex. I am looking to get shadows on the edges of a comp with ~30 layers with animation, without the shadows showing through the transparent parts.

    My attached example uses 3 copies of that comp to get the alpha shadow, then the normal comp over top again. Which is more taxing than it needs to be when previewing and I’d rather not go through the steps for each separate future animation. I’ll do it if that’s the only way, but I feel there’s something I’m missing to make it simpler.

    There is no 3D being used, I’m simply using renders from C4D and some creations within AE.

    Thanks for your time.

    shadowsample.jpg

  • Walter Soyka

    March 4, 2014 at 10:46 am

    Walter’s single-layer, transparency-avoiding drop-shadow recipe:

    Levels: Alpha only, alpha gamma tweaked to crush out transparency
    Fill: Black (Color will be shadow color, opacity will be shadow opacity)
    Fast Blur (Blurriness will be softness)
    Transform: (takes the place of offset/direction/distance)
    CC Composite: Original, in front, RGB only unchecked

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Nick Matthews

    March 4, 2014 at 5:49 pm

    Walter, your process absolutely works with single objects like shape layers, but when I tried applying it to a composition it did not avoid the transparency like it did with the one layer.

    shadowsample2.jpg

    Thanks for sharing that though, I will definitely remember how to do that for other projects.

  • Walter Soyka

    March 4, 2014 at 7:33 pm

    I said “crush the alpha” above, but I should have said “blow out the alpha” instead. If you bring that gamma slider to the right (making the gamma number very small instead of very big), then this should behave as expected — it shouldn’t matter that the source layer is a comp.

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Nick Matthews

    March 4, 2014 at 7:55 pm

    Oh excellent, I should’ve thought to tweak the setting a little more when I wasn’t getting the proper result.

    Works great, thanks!

  • Walter Soyka

    March 5, 2014 at 11:24 am

    You’re welcome.

    You can simplify this process a bit for future work by saving this as an animation preset [link].

    Walter Soyka
    Principal & Designer at Keen Live
    Motion Graphics, Widescreen Events, Presentation Design, and Consulting
    RenderBreak Blog – What I’m thinking when my workstation’s thinking
    Creative Cow Forum Host: Live & Stage Events

  • Brandon Gregory

    August 15, 2018 at 12:53 am

    That is pretty awesome Walter Soyka, though it’s missing one thing! How do I change the blend mode? Let’s say I would like to set the shadow to multiply?

  • Walter Soyka

    August 15, 2018 at 2:12 pm

    Add a Compound Arithmetic effect after the Transform effect and before the CC Composite effect, and set its Second Source Layer property to the background layer you’d like to use. You may need to do some precomping and/or use the new Effects & Masks option in the layer selector.

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

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