Merging faces command

 From:  Fubax
7440.4 In reply to 7440.2 
Could a script be made to automate this merging faces process?