Skip to main content
Participant
September 16, 2022
Question

Imported Illustrator File Produces Offset Motion Path

  • September 16, 2022
  • 1 reply
  • 710 views

Need some help, been working on this problem for two days. When I use an Illustrator File with a line intended to be a motion path ends up offset from the composition.

AE 22.6, AI 26.5, Mac OS 12.6, Mac Mini M1

1. Import Illustrator File as New Composition Retaining Layers.

2. Turn layer to be used as motion path into Shapes Vector Layer

3. Copy "path" attribute from Shape Layer

4. Paste "path" into transform "position" of ball layer

5. Motion path and ball shift "offset" from origianl position.

6. Ball follows path but is now offset.

Not what I wanted. I want to maintain the original position of the line.

All files and screen shots included. Had hard time uploading the AI File so I loaded an eps and svg.

This topic has been closed for replies.

1 reply

Community Expert
September 16, 2022

The default anchor point for a shape layer in 0, 0 because the layer has no size until you add something to it. It is the same thing with Text layers.

When you convert a Vector file to a shape layer has dimensions and the anchor point is half the width and height of the new shape layer.

 

To get the motion path to line up properly add a null to the composition at the default comp center, then Parent the moving layer to the null and reset the null's position to 0, 0.  If you have not transformed the shape layer in any way before copying the vector path to a shape layer, the motion path will now line up. 

 

Another option is to use the Create Nulls From Paths.jsx script and select the path and Trace Path. This will create a null that follows the selected path no matter where it is or how the layer with the path is transformed. Then you can just Shift + Parent the layer you want to move to the Null. That is the workflow that I use most of the time. The only caveat is that the path must not be in a Group that has transformations applied. That will throw off the position calculations.

 

There is a third option. If you have XD, you can open an Illustrator File in XD, select everything, then use the File/Export/After Effects menu option. This will create an After Effects composition with every object in an AI file as a shape layer, all text layers as editable text, and all groups as Nested comps with one click. 

tdkartAuthor
Participant
September 16, 2022

Thanks,

Can't get it to work. The path and object still are offset. It seems like there are a dozen ways to do this after reviewing videos and tutorials but non have worked so far. This seems like it would be a very easy thing to acheive and yet after two days I have gotten no where. I wish I could have uploaded my AI file but everytime I tried it said "the file didn't match the extension and was deleted"