A General-Purpose Animation System for 4D