Creating output for ply and pov using a switch