Copy link to clipboard
Copied
Hello,
I would like to automate the position of an object "A" in such a way that when an object "B" is getting closer (around 100px of distance), the object A would dodge B.
I don't know if it will be useful but here is a sketch of what I would like to do :
A→ B
----------------------
A→ B
----------------------
A→
B
----------------------
A→
B
----------------------
B A→
Thanks in advance !
It's going to take some modification of some or all of these techniques demonstrated and explained by expression guru Dan Ebberts:
I don't have time to give you the expression but I can give you the idea.
Copy link to clipboard
Copied
I can think of ways this would be possible, but unless you're doing a ton of these, I have a feeling it's going to be more successful to animate this by hand.
Copy link to clipboard
Copied
I would like to do this with aproximately 20 objects, so I don’t know wich would be the easiest way..
Copy link to clipboard
Copied
What is the nature of object A's movement? simple X axis left to right as per your sketch above - or something more random?
Copy link to clipboard
Copied
It's going to take some modification of some or all of these techniques demonstrated and explained by expression guru Dan Ebberts:
I don't have time to give you the expression but I can give you the idea.
The there option, which would work very well if you have 3D layers is Newton 3 . That would be the easiest way I know of to quickly generate collisions between layers.
There may be some other scripts out there that I don't know about. So I guess it comes down to figuring out if you have several hours to devote to figuring out how to modify Dan Ebberts' sample expressions or do you have about $250 to spend on a 3rd party solution.
Copy link to clipboard
Copied
If you want the motion to be smooth, do it by hand. If you don't care how the motion looks, code it.
Copy link to clipboard
Copied
For 20 layers I think Kyle and Dave's suggestion is probably the right one. You'll probably spend longer building and tweaking an expression than it would take to keyframe it.
Copy link to clipboard
Copied
What Dave said. Do it by hand. It's just a measly 20 layers, after all.
Mylenium
Copy link to clipboard
Copied
Thanks a lot for all your help !
Have a good week-end.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now