Hello there, Just wondering whether there was a way to simulate parallax within digital fusion using expressions, and what that math might be. I would like to be able to specify actual distances between objects at different z-depths, attatched to a track of the background plate and watch the resulting realword parallax action.
This is a simple divide-by-Z equation. An expression can be added to the position of each layer merged, and set up as follows:
Animate 'Number In 1' with a spline; this is the X position animation before parallax correction. This same spline will want to be connected to Number In 1 on every parallax expression you have, so the positions all animate in sync.
Set "Number In 2" to the Z position of this layer (positive values greater than 1.0 will probably work best)
Set "Point Expression Y" to: 0.5 Set "Point Expression X" to: 0.5 + n1/n2
This last one is the equation that does the work; it is simply the animation position divided by Z, offset by 0.5 to keep it relative to the centre of the image.