If the rims are scratched or cracked, then you can repair the surface by cleaning, sanding, and priming. When you feel scratches are covered and the surface is smooth, then apply paint to the rims.