Vec_for_vertex works fine with bones, but maybe you have already reset the bones when you call the command?