writes skinning and number of joints to material file