-
expression problem (moving objects in relation between other objects)
I have many objects (actually they are small 10×10 layers, but for ease of explaining the problem I’ll call them objects) and I currently have them in all in positions I like (as in, I visually like how they are setup now). Also, I have two “walls” (long 720×10 solids) at the bottom and top of the composition. Basically it looks like confetti with two long rectangles at the top and bottom of the composition.
Now this is what I’d LIKE to do:
I would like to make an expression so if the WALLS move in the Y axis the OBJECTS will proportionally stay between the walls (moving the walls close together would look like the comp is getting squished). I did this once with a very simple expression that took the Y axis of the top wall and the bottom wall and added them together and divided them by 2, and this was the Y position of the object. However, the problem this time is I already moved all the objects to places I like, so I need to figure out a way to keep the objects in relative position between the two walls now…
Any pointers?