A defendant may waive his right to be present during trial. However, upon motion of the State's Attorney made prior to or during trial, the court shall order the defendant to present himself in open court for the purpose of identification.
725 ILCS 5/115-8