Applying materials to objects