All of the 3D animating softwares I've faced are centered around using GUI to work: windows, menus, mouse clicks, mouse adjustments, keyboard shortcuts. As a programmer, I find that limiting. In order to have full control over an animation, it'd be interesting to use code. For example, say you wanted to animate a magic sword which color depended on speed. Without programming, that's not possible at all.
Thus I ask: is there a 3D animation softwares that target coding, not GUI work?