Connect an Object to a Trim Path in After Effects

  Рет қаралды 17,776

GoDaron

GoDaron

2 жыл бұрын

I got some great questions on my creating a path from CSV data video and there’s one question in particular that I wanted to pull out into its own tutorial since it covers something essential in how After Effects works. And that question is: “is there a way to get an object or shape to follow the path” that we create with our CSV data. The answer is yes! So in this video I’m going to show you how to do that while also diving a little bit into composition space versus layer space.
I know the audio is terrible. I promise if these videos ever get monetized I'll buy a mic.
Create a path from CSV data tutorial: • Create a line graph fr...
An addendum:
Yes, you can create another shape on the shape layer where you have your trimmed path and you don't have to convert to composition space using toComp(). However you're going to run into a few issues if you're doing anything other than creating a dot the same color as your path. This method divorces your arrowhead/shape/object from that trimmed path's layer and gives you lots more options.

Пікірлер: 57
@victorpapou
@victorpapou 7 ай бұрын
var path = thisComp.layer("Target Layer Name").content("PATH").content("Shape 1").path; var trimPath = thisComp.layer("Target Layer Name").content("PATH").content("Trim Paths 1").end /100; var targetLayer = thisComp.layer("Target Layer Name"); var point = path.pointOnPath(trimPath); targetLayer.toComp(point)
@angelaw7963
@angelaw7963 Жыл бұрын
Fabulous tutorial!!!! Just what I was looking for and worked perfectly. The explanation for understanding how the expression works was also super clear.
@lua.motion
@lua.motion 2 ай бұрын
Thank you so much Daron! It helped a lot, the fact that you explain how the expression works, made me be able to animate something that was not exactly the same problem you shared, but had the same solution. I needed to connect the center point of a light to a path, and it worked perfectly! Your tutorial was a real life changing!
@alexcarey8279
@alexcarey8279 7 ай бұрын
Your explanation was sooo good/easy to follow, thanks so much!
@canaya1
@canaya1 2 жыл бұрын
Oh my God, Thank You!!! I've been looking for this for so long.
@Pandorac
@Pandorac Жыл бұрын
This is fantastic and just what I needed. Thank you so much for sharing this knowledge.
@nikyabodigital
@nikyabodigital Жыл бұрын
Great. I am working with thicc stroke. This is massive value you're offering Daron. Thank you very much.
@verykozi
@verykozi 2 жыл бұрын
This one is great! Follow up to any out there trying to allign circle (doughnut transparent in the middle) to the trim path: Right-click on the Doughnut > Transform > Anchor Point... and find some spot where line is straight to allign it correctly. God speed!
@mohamedmoussa1477
@mohamedmoussa1477 Жыл бұрын
very good tutorial this exactly what i got tired searching for. thank you very much indeed wish you best of luck
@studiopictures9315
@studiopictures9315 4 ай бұрын
I've been looking for ages for this, thanks!
@nahuelcardozoesper
@nahuelcardozoesper 8 ай бұрын
Thanks!! Was very useful! I was struggling to do this and you solved it! Thanks!
@raduantoniu
@raduantoniu Ай бұрын
Wow thanks so much! You the real MVP
@musicandscience6807
@musicandscience6807 2 жыл бұрын
Amazing tutorial, thanks GoDaron!!
@richj1151
@richj1151 2 жыл бұрын
Thank You. Super informative!!
@pblarriba
@pblarriba 2 жыл бұрын
That was so helpfull! Thank you so much !
@Scabloonshki
@Scabloonshki 2 жыл бұрын
Very useful tutorial, though I cannot understand for the life of me why achieving such a simple effect requires this much work. There should be a feature that allows you to easily add a new shape/image to a line cap. It shouldn't need to be basically coded in like the way it is shown here.
@galaga00
@galaga00 4 ай бұрын
This will be said at least once by me every single time I use After Effects.
@angelvazquez5538
@angelvazquez5538 10 ай бұрын
Thank you so much, you saved my life.
@mghhgm20
@mghhgm20 2 жыл бұрын
Very Well! by this tutorial, you have a flexible motion. because when change the path, your child path was changed! NICE. Thank you
@WalidDingsdale
@WalidDingsdale 8 ай бұрын
awesome expression tutorial. thants for sharing
@solideshalbwissen
@solideshalbwissen 2 жыл бұрын
Great stuff.
@romainamphyon
@romainamphyon Жыл бұрын
Thank you very, very much 😘
@christiaannel5504
@christiaannel5504 Жыл бұрын
Lifesaver! 💖💖💖💖
@crisislab
@crisislab Жыл бұрын
Thank you for saving me a GAJILLION hours. You're a wizard. :)
@aliciajoohee
@aliciajoohee Жыл бұрын
THANKSSSSS A Millionnn !
@Max77189
@Max77189 4 ай бұрын
Thank you
@flaviatavares5503
@flaviatavares5503 2 жыл бұрын
Great thanks! I did it with the object I had already and it didn't work, the position was following but outside the comp. I created it again in a new layer and it worked fine.
@DMGFXink
@DMGFXink Жыл бұрын
Thank ya
@alenlenia
@alenlenia 10 ай бұрын
Thank you. do you also know how to involve an offset value made by trimpath into the codes so that the arrow head or triangle doesn't fall behind or move forward?
@Audumbar_shinde
@Audumbar_shinde 4 ай бұрын
thanks madam you save my day
@_jhoansalazar
@_jhoansalazar 2 жыл бұрын
👋 thanks a lot, just I wanted to ask you something, I'm doing right now an Info Video with trim path and the camera must follow it, do you know an easy way to do it, because if have to put a lot of keys and trying that the cámara move to sync with it.
@flaviatavares5503
@flaviatavares5503 2 жыл бұрын
It's so rare to see women doing AE tutorials, thanks for being here! And long life to your channel!💜
@jounikuuva763
@jounikuuva763 Жыл бұрын
Cool! Hey you should at least have a donate-button somewhere, this is valuable stuff.
@DarkRiderMotovlogs
@DarkRiderMotovlogs 2 жыл бұрын
Thank you for this! Super helpful. I have one question though. When my trim path gets to the last key frame, the rotation of the arrow changes to 90 degrees to what it was before? But the orientation value doesn't change, it still shows at 0 degrees, but visually its been rotated by 90. I'm not sure how to fix this. Any ideas?
@nattenborough
@nattenborough Жыл бұрын
I had the same issue and had to rectify it by adding a keyframe one frame later to correct the rotation at the very end. Not ideal, but was a quick fix.
@stevelamb3531
@stevelamb3531 11 ай бұрын
Had the same issue too. Keyframes on the trim path line help. Annoying as I had two points where there was no movement so had to do a 0.1 change which looked static but had a very subtle change.
@editoromroepgelderland
@editoromroepgelderland Жыл бұрын
I'm getting an error saying - path.pointOnPath is not a function What can I do?
@PhookaAnimation
@PhookaAnimation 11 ай бұрын
This would be so cool but it's just not working for me :/
@Winxamitosis
@Winxamitosis Жыл бұрын
i'm using a closed path for this, and i've offset the trim to start in a different place on the path. how do i apply the same offset to the following arrow to take into account the offset?
@luisvb24
@luisvb24 Жыл бұрын
Replace the var trimPath line with all this (Be careful with the Comp.layer and content names): if (thisComp.layer("OrbitPath").content("Trim Paths 1").offset/360 < 1) { var trimPath = thisComp.layer("OrbitPath").content("Trim Paths 1").offset/360 } else { var trimPath = (thisComp.layer("OrbitPath").content("Trim Paths 1").offset%360)/360 }
@nickperry3255
@nickperry3255 Жыл бұрын
this is just the effect i needed. however, what if my trim path has an offset? how do i have it so the object starts at the offsetted point?
@marimotion22
@marimotion22 Жыл бұрын
Just add "+value " into your last line of code. Should look like this: targetLayer.toComp(point) +value; I think this should solve the problem.
@marimotion22
@marimotion22 Жыл бұрын
Then you can move the Object to the destination needed and it will still work with the expression.
@user-wz4ub2kz2m
@user-wz4ub2kz2m 4 ай бұрын
Hi, I've got this to work but my path has been reversed, so now the shape object follows it but in reverse to the trims path, ie as my line draws in from the left my shape starts at the right! Is there a way around this using an expression to counter it?
@mattrossi7955
@mattrossi7955 4 ай бұрын
This is so helpful! Is anyone having an issue with the shape rotating near the end of the trim path animation?
@sirajudheenkv8501
@sirajudheenkv8501 Ай бұрын
yes, i have the same issue... how we can fix ..?🙃
@Bloodnick
@Bloodnick Жыл бұрын
Great tutorial! But I tried doing this to a 3D layer, and it messes with the Z-position of the null object and sends it back several thousand values. Any idea on how to fix this issue within the expression?
@godaron104
@godaron104 Жыл бұрын
You'll need a different expression for that -- You use toComp() when you're working with 2d layers, and toWorld() when you're working with 3d.
@Fads
@Fads 2 жыл бұрын
Thanks for this! Works great in 2D, but when I change the layers to 3D, the object no longer seems to follow the trim path - any idea why this might be? I'm basically trying to attach a null object to a trim path so I can track it using a camera.
@godaron104
@godaron104 2 жыл бұрын
You'll need a different expression for that -- You use toComp() when you're working with 2d layers, and toWorld() when you're working with 3d.
@Fads
@Fads 2 жыл бұрын
@@godaron104 amazing, thanks !!
@hakonmarcus
@hakonmarcus Жыл бұрын
@@godaron104 I did this, and the object follows the correct path, but it seems to be offset by quite a lot, do you know why this could be happening?
@micheliochoa2085
@micheliochoa2085 7 ай бұрын
Na, increible
@TheBestgoku
@TheBestgoku 11 ай бұрын
Why did you channel stop making videos?
@nikkiritmeijer4562
@nikkiritmeijer4562 Жыл бұрын
I'm doing it exactly as your instructions but I'm getting a "Undefined value used in expression (could be an out of range array subscript?)" error when I try adding var path or var trimpath to my expression, can't figure out for the life of me why!!
@contrail33
@contrail33 11 ай бұрын
I have the same issue. Can't get past the first step. Unfortunate because this would do exactly what I need 😩
Tap into the FULL POWER of trim paths
29:26
MotionXP
Рет қаралды 133 М.
Create a line graph from a CSV file in After Effects
13:49
GoDaron
Рет қаралды 15 М.
Зачем он туда залез?
00:25
Vlad Samokatchik
Рет қаралды 3,2 МЛН
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 24 МЛН
Crazy Trim Paths Tricks in After Effects | Tutorial
9:21
Manuel does Motion
Рет қаралды 334 М.
Make ANYTHING Retro in After Effects
12:30
Ben Marriott
Рет қаралды 805 М.
Diverging Paths - Adobe After Effects tutorial
16:22
ECAbrams
Рет қаралды 297 М.
10 Quick After Effects Techniques I LOVE
8:01
Ben Marriott
Рет қаралды 657 М.
Animating with Create Nulls from Paths | After Effects Tutorial
9:22
Manuel does Motion
Рет қаралды 63 М.
Repeater Grids - Adobe After Effects tutorial
11:54
ECAbrams
Рет қаралды 357 М.
Create an Instant Hand-drawn Look in After Effects
4:52
Ben Marriott
Рет қаралды 223 М.
Top 20 Actually Useful Effects in After Effects
7:38
Ben Marriott
Рет қаралды 497 М.
After Effects: Dynamic Proximity Effectors with Expressions
13:46
Creative Dojo
Рет қаралды 36 М.
Advance Trim Path [After Effects]
10:48
Joel Arrey
Рет қаралды 21 М.
Головоломка 2 (2024)
1:30:42
Команда miraculous
Рет қаралды 1,7 МЛН
Кого она вытащила из воды?😱
0:51
Следы времени
Рет қаралды 4,6 МЛН