Updated animation scripting for objects.
Added objects classification for animation by their ObjectType.