Part of the NH-Nodes suite: A node for compositing layers onto a background. It supports an unlimited number of layers and allows the use of mathematical expressions to automate any layout you desire.
Where:
Background width = a - Background height = b
Layer 1 width = w1 - Layer 1 height = w2
Each row represents the corresponding x;y
coordinates for each layer. Row 1 is assigned x1,y1 - Row 2 is x2,y2, and so on.
In the process of building custom workflows, you will occasionally encounter needs like this; instead of having to chain multiple "paste" nodes together, you will only need to use a single node.