Copy link to clipboard
Copied
Hi All,
Having some trouble animating "teeth" on a chainsaw along the path of the chainsaw (Image for reference). I tried to copy the path of the chainsaw to the position of one of the "teeth" then auto-orient the shape, but it didnt seem to work, might it be I have the anchor point in the wrong position? I had the anchor point of the shape in the middle, then had it on the path of the shape itself, both did work. Any ideas? Defo missing something here. Let me know if more info is needed
Copy link to clipboard
Copied
Are you selecting the word "Position" (by the stopwatch) before you paste?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
l = thisComp.layer(index + 1);
ofst = thisComp.layer("Ctrl").effect("Time Offset")("Slider")/10;
dly = thisComp.frameDuration * ofst;
p = l.position.valueAtTime(time + dly);
I have attached a AE-23 and an AE-25 sample comp. This is what it looks like:
The low frame rate of the GIF makes the movement look jerky, but it's fine in the sample compositions.
Copy link to clipboard
Copied
Wow! Thanks Rick so much for this! Still having some weird issues though. One of which is when I auto-orient the link it roatates it incorrectly, I then have to apply a 90 degree rotation to the link. This then causes the first duplicated link to finsih its short animation out of shape (View screenshot & Video for what I mean). I'm also having trouble once I have duplicated the link once, to create "Link 2" and added the expression and with the Null moved it behind the original link. When I duplicate it again it doesnt react to the Null slider.
Copy link to clipboard
Copied
Did you look at my sample comps?
Press the U key twice to check the modified properties of your "Link" layer. I think your link layer was rotated by 90º somewhere before you started.
Share the project file for your screen recording, and I'll take a look.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I should have noticed that you created your link as a vertical piece of art. It looks like it is climbing the left side of the Bar layer.
You need to create your Link artwork to look right when it is at the highest point of the motion path. It needs to be horizontal, not vertical. You could fix the artwork by rotating it 90º so that the anchor point is at the bottom and looks the way you want it to look when it would be at the highest point on the motion path.
Your time offset is also way too big, which is causing the Link 2 layer to stop moving. You want the Link 2 layer in front of the Link layer, not behind it. A value around 29 should be pretty close.
Hope this helps.
Copy link to clipboard
Copied
You can use Pen tool to draw the path you want the teeth to follow. Once done, select the path and copy it (Ctrl+C or Cmd+C), then select the layer of the tooth, press P to reveal its Position property, and paste the path (Ctrl+V or Cmd+V). This action creates position keyframes that move the tooth along the path. Next, go to Layer > Transform > Auto-Orient and choose Orient Along Path to ensure the tooth rotates naturally as it moves. It’s also important to adjust the anchor point using the Pan Behind tool (shortcut Y); positioning it at the base of the tooth instead of the center often helps with proper rotation. If the movement looks abrupt, refine the path by smoothing out any sharp corners for more fluid motion.
Copy link to clipboard
Copied
Another way to do this is using text.
You could use either a dingbat font you download (dafont.com has a lot) or make one yourself using sites like fontstruct.com.
This is an example where the triangle dingbat is animated along a path using the text layers text on path option. The first pargin is then animated to move the teeth.
https://youtube.com/shorts/NisjHsglbGg?feature=share
The attached aep is my project file for that example.