When You’re Stuck Mentally, Move Physically
Srinivas Rao

I think what you are talking about is getting into the creative Flow. http://www.pursuit-of-happiness.org/history-of-happiness/mihaly-csikszentmihalyi/

This is a well researched function of the human mind and movement of all kinds can be conducive to this state of flow where you are totally immersed and involved in the creative activity.