Here is the Macro. My math for Vertical Adaptive+Vertical Gap is not correct at the moment but I don`t have time to solve this right now
Macro can work in 3 modes:
1. With the Wall Heigth parameter (Y Spline not assign).
2. With X/Y Spline (Y Spline is assigned and it controls height)
3. Clipping Spline > When Clipping Spline is assigned and `Use Clipping.Ext.Size`check box is ON. (If the Check box is OFF Clipping Spline will act as ordinary clipping for the first two modes)
note; You can get some interesting results by exposing parameters and adding some Random/Arithmetic Nodes.
eg. I exposed the Z offset parameter and connect the Random Node set with values -3 to 3 and generate on SEGMENT. This will result in randomness for each brick...
Please let me know if you need more info about the parameters.