Solution to multiple layer sets

Maybe something like this? You can modify this to push whatever into whatever. Even sizes, colors and much more. For this it would be necessary to not ignore the HTTP-API link from above.