Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Stroke behind two different objects

  • Stroke behind two different objects

    Posted by Peter Bentley on February 14, 2019 at 4:56 pm

    Is there a way to do this in After Effects? I have two shapes (or more) and I want to put a stroke on the outside of both of them, but retain the ability to animate them independent of one another. In Illustrator I make the two shapes, group them, and then in the Appearance panel add a stroke and layer it underneath “Contents”. Here are two images of what I am trying to do:

    Before rotating:

    After rotating:

    Is this possible? If I need to use a script, can anyone provide me any guidance? Thanks in advance!

    Max Haller replied 7 years, 5 months ago 3 Members · 5 Replies
  • 5 Replies
  • Ken Teutsch

    February 14, 2019 at 5:06 pm

    You can put the two shapes (without strokes) into a shape layer group, then apply a stroke to the group. Animate the individual rectangles’ rotation.

    Or put the shapes (without strokes) on different layers, precompose the two layers and then apply the “stroke” layer style to the precomp.

  • Peter Bentley

    February 14, 2019 at 5:36 pm

    Thanks Ken! I did not know about either of those, and learned a bit more from these links (for anyone who might stumble on this thread down the line):

    Video about grouping shapes within a shape layer:
    https://www.youtube.com/watch?v=V-j8qS8LwtU

    How to add a stroke to a pre-comp:
    https://blog.motionisland.com/stroke-a-composition-in-after-effects/#.XGWmLc9KjUI

    I think I’m going to go with the latter. Thanks again for the help!

    Peter

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Peter Bentley

    February 14, 2019 at 9:26 pm

    One followup question: when I put the animated composition (which is a collection of layers from Illustrator) into the parent composition and apply a stroke layer style to that pre-comp layer, the edges are jagged. Does anyone know how to avoid this? How do I get rid of the jaggies?

  • Peter Bentley

    February 14, 2019 at 9:51 pm

    I figured it out. I needed to go into the composition which has the Illustrator layers and check the little sun box on each layer in order to “continuously rasterize” them. That made the edges smooth.

  • Max Haller

    February 15, 2019 at 7:02 pm

    Does the merge shapes option not work for this situation? Its under the Add:> arrow on shape layers. click on the contents line first and then try the merge shapes effector. It sounds like exactly what you’re describing

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