For the rotating from the middle, use SPHOME. See how to use it with [?].