You can use several prepare layout commands in a row in an easier way.
The example given here is when you want to rotate a branch and roll another one.