My 3x3x3 and 5x5x5 LED cube

WonderTiger:
Control question:
If I want to lit up the whole cube, I need to do the following:
...
Or is this possible as well? (I'm newbie in programming as well ;)):
-Select layer 1 (turn off layer 2/3)
-Turn on all LED
-Turn off layer 1
-Select layer 2
-Turn off layer 2
-Select layer 3
-Turn off layer 3

That will work, yes... (for any pattern which is the same in all three layers)