Example for how you can solve responsive layouts in spark using code. This project is the answer to a question asked in the Spark AR Community on Facebook.
Rectangles that scale proportionally, that are aligned to the right and stretched out to fill the height of the screen
The scripts also include some other secret juice.