After Effects: Dynamic Proximity Effectors with Expressions

Sdílet
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

Komentáře • 53

  • @CreativeDojo
    @CreativeDojo  Před 3 lety +8

    Don't forget, you can rig up expression controls to really create complex systems, similar to Cinema 4D.

  • @anuragkhairkar7397
    @anuragkhairkar7397 Před rokem +24

    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]]);

  • @RidvanMaloku
    @RidvanMaloku Před 2 lety +5

    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!

  • @TheSfelex
    @TheSfelex Před 7 měsíci

    I LOVE the way you explain the functions and how we can/should implement arguments, thank you thank you :D

  • @josephb1884
    @josephb1884 Před 2 lety +1

    Sweet! Excellent instruction that made everything crystal clear. Thank you for posting this, it is so helpful!

  • @stupidnotes
    @stupidnotes Před 3 lety +3

    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!

    • @CreativeDojo
      @CreativeDojo  Před 3 lety +1

      Really appreciate the feedback, it helps me narrow down my topics :D

  • @brandingtactics
    @brandingtactics Před 3 lety

    Thank you so much!

  • @tylarmcgill2496
    @tylarmcgill2496 Před 2 lety

    Just the tutorial I was looking for! Thanks for the breakdown.

  • @paulcristo
    @paulcristo Před rokem

    Thanks!

  • @HyperActive94
    @HyperActive94 Před rokem

    amazing tutorial man, we need more of those.

  • @albertskowronski
    @albertskowronski Před rokem

    This is awesome, thanks a lot!!!!

  • @lawsontuladhar
    @lawsontuladhar Před 3 lety +1

    Yep more of these🖤

    • @CreativeDojo
      @CreativeDojo  Před 3 lety +1

      That's awesome to hear that you like these videos!

    • @lawsontuladhar
      @lawsontuladhar Před 3 lety

      @@CreativeDojo Yes, thank you for these!

  • @davidkundan5130
    @davidkundan5130 Před 3 lety +2

    Amazing, yes please we need some more like these thnx

    • @CreativeDojo
      @CreativeDojo  Před 3 lety +1

      Appreciate the awesome feedback, will continue to make videos like these!

  • @obentophaut8693
    @obentophaut8693 Před 2 lety

    Great stuff.

  • @osgarlo
    @osgarlo Před 3 lety +3

    more of theeese! really helpful

    • @CreativeDojo
      @CreativeDojo  Před 3 lety

      Appreciate the feedback Oscar, will keep them coming!

  • @MDigitalProductions
    @MDigitalProductions Před 3 lety

    That's so dope 🔥 🔥 🔥

  • @nowwhatdayisitagain
    @nowwhatdayisitagain Před 2 lety

    You've got my sub! This video was fantastic!

  • @vncnt_hz
    @vncnt_hz Před rokem +1

    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

  • @xrossfader
    @xrossfader Před 3 lety

    omg yes... yes make more of these!

  • @IvanEngler
    @IvanEngler Před 3 lety +1

    cool!!

  • @BibekSHRESTHAbvk
    @BibekSHRESTHAbvk Před 3 lety +1

    wow.. thankyou for Sharing it :)

  • @gianmartins6580
    @gianmartins6580 Před 2 lety

    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.

  • @daniel.telles
    @daniel.telles Před 2 lety

    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)?

  • @cosmolv
    @cosmolv Před 3 lety

    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 :)

  • @charlesagnew3801
    @charlesagnew3801 Před 2 lety +2

    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?

  • @digitalmole8236
    @digitalmole8236 Před 3 lety +4

    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)
    ??

    • @CreativeDojo
      @CreativeDojo  Před 3 lety

      You are correct, it should be the same thing. Oops!

  • @alessiorattazzi7462
    @alessiorattazzi7462 Před rokem

    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.

    • @alessiorattazzi7462
      @alessiorattazzi7462 Před rokem +1

      found it! I can insert the rotation inside the position as a path and it works!

  • @ostentatiousostrich
    @ostentatiousostrich Před 3 lety +1

    Moarrrr! :)

  • @eladbari
    @eladbari Před 3 lety

    Wonder how this differs from Motion3 script (has a similar tool there)

  • @jacobnewnham1719
    @jacobnewnham1719 Před 2 lety +1

    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?

    • @CreativeDojo
      @CreativeDojo  Před 2 lety +1

      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!

    • @jacobnewnham1719
      @jacobnewnham1719 Před 2 lety

      @@CreativeDojo Thanks!!

  • @marker849
    @marker849 Před 2 lety +1

    what about rotation? i tired on rotation and its not working...how do i make it work?

    • @CreativeDojo
      @CreativeDojo  Před 2 lety

      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.