Skip to main content
Shpigford
Participant
March 22, 2012
Answered

Reverse pasted path direction?

  • March 22, 2012
  • 8 replies
  • 51786 views

I've got a path on a Shape layer and I'm copying that path into the Position of another layer (so I can animate that layer along the path).

But I need to reverse the direction that the pasted position travels.

So instead of the object moving left to right, I need right to left.

I tried changing the "Reverse Path Direction" parameter on the path before copy/pasting, but that didn't seem to do anything.

Correct answer gin1211

2015 CC

selected all key > right click>keyframe assistant>Time-reverse keyframe

8 replies

Participant
June 15, 2021

If you're using a script like time*200(or whatever # speed) to make your path animate under path option->first margin you can put negative time and it will animate the path in the opposite direction.

kalamazandy
Known Participant
June 15, 2021

You're thinking too simplistically. A path, in after effects can be a compound path. So when someone says path in AE, it's not the same as in illustrator. It could mean multiple paths, as one path definition. You can have 18 open lines as "the path." 5 of those lines could be reversed, where the other 13 aren't. 

So you can't just put a negative number to make the path switched, because that changes the Entire path, meaning all 18 lines in that example. There is also a reverse path direction on shape layers in after effects, but you've got the same problem. If those paths need to be treated as one path, for something like a shape morph, then the direction of those are important.

 

Instead, copy the lines, paste them in illustrator. I suggest adding an arrowhead to one end so you can preview direction easier. Then select the reversed lines there, reverse the direction. Then copy the paths, come back to AE select the paths and hit paste to replace them. 

This also works for closed paths of course, but it's more difficult to see the direction in illustrator. 

kalamazandy
Known Participant
April 1, 2020

Just so that other people can find this solution as well:

If you need to reverse your path direction you can also copy the path to illustrator. Reverse the path direction, then copy it back. This Actually reverses the path direction and isn't a trick that works just in the case you want to animate something onto the path. 

If you want to know Why you might need this, one example is morphing from one shape to another. Often shapes were drawn in different directions. So you need to reverse only One of them. And that will work. Another tip there is also making the start point for both shapes in a similar spot. if you're moving from a "T" to an "S" them use something like the buttom left corner of both as the start point. That helps ensure slightly less overlapping as the paths move from one to another. And you'll have to make sure you're paths are drawn in the same direction. But it's a letter, how are you to know? 

 

So since there's no tool to control One paths' direction in AE, then just copy it over to AI, reverse it, and come right back. Works for shape layers And masks. 

Participant
May 20, 2021

Thank you so much, This is the actual answer to this question

Majestic_Ocean98A2
Participant
July 8, 2019

Thanks!

Participating Frequently
May 7, 2018

If you're designing your shape in illustrator, you can use the mirror tool to change the direction of the path.
If you're doing everything in Ae, I suggest you copy-paste in Ai, do the thing and paste back in Ae.

That fixed it for me when trying to morph two shapes that wouldn't behave properly.

Participating Frequently
December 27, 2022

Wish I could edit.
What I call "mirror" is properly called the "Reflect" tool, shortcut "O".

 

Participant
February 15, 2018

script for mask only ReverseMaskPath - aescripts.com

If u want to reverse path then

gin1211
gin1211Correct answer
Participant
May 6, 2016

2015 CC

selected all key > right click>keyframe assistant>Time-reverse keyframe

Participant
August 6, 2016

gin1211 wrote:

2015 CC

selected all key > right click>keyframe assistant>Time-reverse keyframe

This is exactly what I was looking for. Thanks!

Known Participant
February 17, 2016

This a CC wide problem of Adobe not treating vector graphics in the way other hardcore vector graphics software does. Every Path has to have a direction in which it's drawn, and all vector aware software should be able to change the direction. In Ai its confusing to have both path direction (which seems to be exclusive for Ai and doe not effect pasted masks as you have discovered), and a Odd/Even fill option (called Fill Toggle in classic computer graphics terminology). A compound path should make use of the directions to decide whether a path results in a Fill or a 'Hole'.

I remember that in early versions of Ae ther was an option to change the direction of paths, but maybe that's not true. Let's request Adobe to (re)introduce the possibility!

featurerequests: Please make it possible to change the direction of a Mask Path in After Effects

Participating Frequently
February 19, 2016

I agree, it's a long-needed feature.

However, here's a quick workaround when using Illustrator to edit the path: By connecting the two endpoints of a path, cutting the new line and deleting the two endpoints at the cut, somehow the path direction has changed. I then copy to AE and the path is being drawn in the correct direction.

Mylenium
Legend
March 22, 2012

Select the point you want to be the first, right-click, choose Mask and Shape Path --> Set First Vertex

Mylenium

Shpigford
ShpigfordAuthor
Participant
March 22, 2012

When I do that, it changes my path.

In the attached screenshot, the first "hook" path is the original and the second is after I click the first point and "Set First Vertex"

https://img.skitch.com/20120322-r9wmrpbk29fg3wx59542fk28ij.jpg

Mylenium
Legend
March 22, 2012

Have you made sure the path is actually treated as a nopen path. Check that by once more referring to the menu I mentioned...

Mylenium