Whenever a motion for substitution of a judge is filed after the action or proceeding is set for trial or hearing, the party filing the motion shall pay to the opposite party all costs necessarily incurred in securing the attendance of witnesses between the date the order was made fixing the day of hearing or trial and the time the motion was filed, and such costs so paid are not recoverable in the action or proceeding.
§ 25-10-205, MCA