add example of animation weights encoding and update intarray encoding