After Effects: Dynamic Proximity Effectors with Expressions
Vložit
- čas přidán 8. 07. 2024
- Special thanks to our sponsors Squarespace. For a free trial and 10% off, visit www.squarespace.com/dojo and use the promo code: DOJO
Learn how to create dynamic animations in After Effects, similar to Cinema 4D's effector system, using some clever expressions. We'll learn how to trigger and animate virtually any editable property when a layer is within a defined proximity range. We'll use the linear() and ease() functions within After Effects to achieve this.
▸ Creative Dojo Store: creativedojo.net/store
▸ Best Plugins for Motion Design & VFX: kit.co/CreativeDojo/best-plug...
▸ Best After Effects Templates: videohive.net/page/top_seller...
Follow the Dojo:
▸ Website: creativedojo.net
▸ Twitter: / creativedojo
▸ Facebook: / creativedojo
▸ Instagram: / creative.dojo
Creative Dojo provides motion design & visual effects training, design tools, and industry news. Join the community, get powerful design tools and elements, and learn everything related to After Effects, Cinema 4D, and much more. - Krátké a kreslené filmy
Don't forget, you can rig up expression controls to really create complex systems, similar to Cinema 4D.
var p1 = thisLayer.position;
var p2 = thisComp.layer("Effector").position;
var delta = sub(p1,p2);
var distance = length(delta);
Linear(distance, 0, 250, [value[0],value[1]+100], [value[0],value[1]]);
linear instead of Linear :)
Thank you so much, this saved my day. I had like 1000 layers that I needed to animate by hand, not I can animate them with one null. Amazing!
I LOVE the way you explain the functions and how we can/should implement arguments, thank you thank you :D
Sweet! Excellent instruction that made everything crystal clear. Thank you for posting this, it is so helpful!
This is such a useful expressions tutorial!! Thanks for offering these pro-tips and examples of how to implement the script in different examples! You guys rock!
Really appreciate the feedback, it helps me narrow down my topics :D
Thank you so much!
Just the tutorial I was looking for! Thanks for the breakdown.
Thanks!
amazing tutorial man, we need more of those.
This is awesome, thanks a lot!!!!
Yep more of these🖤
That's awesome to hear that you like these videos!
@@CreativeDojo Yes, thank you for these!
Amazing, yes please we need some more like these thnx
Appreciate the awesome feedback, will continue to make videos like these!
Great stuff.
more of theeese! really helpful
Appreciate the feedback Oscar, will keep them coming!
That's so dope 🔥 🔥 🔥
Thanks for the support!
You've got my sub! This video was fantastic!
Thanks for the support!
its so great ! do you know how i can make the element move with the effector in any direction ? looks like i only can make it move up and down, by movinf the effector left and right. thanks a lot
omg yes... yes make more of these!
hello
Paul van Sommeren Hello. ;)
Appreciate it man, I love making these expression videos haha.
cool!!
Thanks Ivan!!
wow.. thankyou for Sharing it :)
You're welcome! Hope you find it useful!
great tutorial, thanks.
I have a question: how to link only in the x or y position of the layer effector, I would like to make an object pass on the screen horizontally as a scan line and the others respond. without needing the anchorpoint to be exactly on top to complete the movement.
I tried to put like:
var p1 = thisLayer.xPosition;
var p2 = thisComp.layer("Modifier").xPosition;
but it did not work.
Hi there , i have a question, do you know if it posible to link an object an rotate when a keyone moves (just when the other moves)?
Thanks!
Hmm, there is such thing like this to auto scale and center text to it's bounding box - or whatever. Can't find anything usable on the web. I have a daily project where text are linked to graphics layer and changing text every day but all the time i reposition it and scale, move - so it can match on graphics background layer in to it's center. As my solution for this are many versions of possible text sizes, so i switch between these text layers when changing main linked text. I hope i explained it correctly :)
It doesn't work when you parent a layer to a null and allow the null to drive the position. Is there a way to have the layer with the expression to be driven by a parented null , instead of moving the actual layer's own position?
Hey, this is a great tutorial. I was just wondering why do you need the delta variable?
Isn't
length(p1,p2) //the same as//
delta = sub(p1,p2) //and then declaring it with://
length(delta)
??
You are correct, it should be the same thing. Oops!
Hi there, thanks a lot for the great tutorial! quick question, what can I do if my effector rotates? the anchor point must remain in the centre of the object and if I connect the effector to a null the effect does not work.
found it! I can insert the rotation inside the position as a path and it works!
Moarrrr! :)
Heck yeah!!!
Wonder how this differs from Motion3 script (has a similar tool there)
Probably similar expression!
How can I do this so that I can move squares around the comp and the elements turn to face the squares as they move?
Ah that gets more complicated because you have to orient the rotations of every element in a different way relative to where they are. Will do a video tutorial on this, thanks for the idea!
@@CreativeDojo Thanks!!
what about rotation? i tired on rotation and its not working...how do i make it work?
Rotation should work, just know that it's a one dimensional property, so you don't need to do [x,y] for example, just set the rotation value.