wow charlieplexing is complex i dont understand it but im trying
ill check these out thank you.
Also, if your LED cube isn't too big, then you might be able to get away with charlieplexing! (n*(n-1) LEDs from n pins)
I found these great pages that go into a lot of details:
and even a simulator where you can play with a shift register: