select the faces of what you're wanting to set a material ID to then in the set ID box, enter the number and press enter.