ever paint part of the motor without pulling it from the car?

i've used foil to wrap parts that I didn't want to paint, works pretty good.