Change face tranparency

My goal is to hide the non-planar faces and thickness related faces (sheetmetal part). So I’m trying to mimic the command RMB* > Change Transparency for the selected face.
(*)RMB: right mouse button