function pauseFn() {
if ( typeof pauseFn.tog == 'undefined' ) {
pauseFn.tog = true;
}
if(pauseFn.tog==true){
meshes = scene.getActiveMeshes();
for(i in meshes.data){
scene.getAnimatableByTarget(meshes.data[i]).pause();
}
pauseFn.tog=false;
}
else{
meshes = scene.getActiveMeshes();
for(i in meshes.data){
scene.getAnimatableByTarget(meshes.data[i]).restart();
}
pauseFn.tog=true;
}
}